/* Modern Style for Digitalizare Afacere */

/* Custom Properties */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --success-color: #22543d;
    --info-color: #1e40af;
    --warning-color: #c05621;
    --danger-color: #c53030;
    --light-color: #f7fafc;
    --dark-color: #1a202c;
    --white-color: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Custom gradients - more contrasted */
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --gradient-secondary: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    --gradient-success: linear-gradient(135deg, #22543d 0%, #38a169 100%);
    --gradient-info: linear-gradient(135deg, #1e40af 0%, #3182ce 100%);
    --gradient-warning: linear-gradient(135deg, #c05621 0%, #ed8936 100%);
    --gradient-danger: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
    --gradient-hero: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #4a5568 100%);
    
    /* Shadows */
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.15);
    --shadow: 0 .5rem 1rem rgba(0,0,0,.25);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.3);
    --shadow-xl: 0 1.5rem 4rem rgba(0,0,0,.35);
    
    /* Border radius */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    
    /* Transitions */
    --transition-base: all 0.15s ease-in-out;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white-color);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Navigation */
.navbar {
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

/* Logo imagine (img/logo.webp) in navbar — latime limitata desktop, pe mobil se micsoreaza ca sa incapa tot */
.navbar-brand.navbar-brand--logo {
    font-weight: 700;
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(168px, 38vw);
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    margin-right: 0.5rem;
}

.navbar-brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 38px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-base);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 25%, #4a5568 50%, #2d3748 75%, #1a202c 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white-color);
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.98);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.6;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
}

/* Buttons */
.btn {
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white-color);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white-color);
}

.btn-outline-primary {
    border: 3px solid var(--white-color);
    color: var(--white-color);
    background: transparent;
    font-weight: 700;
}

.btn-outline-primary:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: var(--gradient-warning);
    color: var(--white-color);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white-color);
}

.btn-outline-warning {
    border: 3px solid var(--warning-color);
    color: var(--warning-color);
    background: transparent;
    font-weight: 700;
}

.btn-outline-warning:hover {
    background: var(--warning-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--gradient-danger);
    color: var(--white-color);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white-color);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-xl);
    transition: var(--transition-smooth);
    overflow: hidden;
    background: var(--white-color);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 2.5rem;
}

.feature-icon {
    transition: var(--transition-smooth);
    width: 70px;
    height: 70px;
}

.card:hover .feature-icon {
    transform: scale(1.15);
}

.card-title {
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.7;
}

/* Sections */
section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-heading .lead {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form */
.form-control {
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--white-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
    background: var(--white-color);
}

.form-label {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.contact-info {
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background: var(--gray-50);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.contact-info:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info:hover i,
.contact-info:hover h5,
.contact-info:hover p {
    color: var(--white-color) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    border-top: 1px solid var(--gray-700);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* CRM & ERP Specific Styles */
.crm-erp-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white-color) 100%);
}

.crm-erp-card {
    background: var(--white-color);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.crm-erp-card.crm {
    border-left-color: var(--success-color);
}

.crm-erp-card.erp {
    border-left-color: var(--info-color);
}

.crm-erp-card.custom {
    border-left-color: var(--warning-color);
}

.advantage-list {
    list-style: none;
    padding: 0;
}

.advantage-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--gray-700);
}

.advantage-list li:last-child {
    border-bottom: none;
}

.advantage-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-gradient-info {
    background: var(--gradient-info);
}

.bg-gradient-warning {
    background: var(--gradient-warning);
}

/* Website Creation Section Styles */
#creare-site .bg-gradient-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #4a5568 100%) !important;
}

#creare-site .display-4 {
    font-size: 3.5rem;
    font-weight: 800;
}

#creare-site .display-6 {
    font-size: 2.5rem;
    font-weight: 700;
}

#creare-site .feature-icon {
    transition: var(--transition-smooth);
}

#creare-site .card:hover .feature-icon {
    transform: scale(1.1);
}

#creare-site .advantage-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

#creare-site .advantage-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-weight: bold;
}

#creare-site .bg-light {
    background-color: var(--gray-50) !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-brand.navbar-brand--logo {
        max-width: min(calc(100vw - 4.25rem), 220px);
        margin-right: 0.25rem;
    }

    .navbar-brand-logo {
        max-height: 32px;
        max-width: 100%;
    }
    
    .navbar-toggler {
        position: fixed;
        right: 15px;
        top: 15px;
        z-index: 1001;
        border: none;
        padding: 0.5rem;
        background: transparent;
        transform: none;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }
    
    .navbar-toggler.collapsed {
        position: fixed;
    }
    
    .navbar-toggler:not(.collapsed) {
        position: fixed;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: var(--border-radius-lg);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--gray-200);
        position: relative;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .navbar-nav {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar .container,
    .navbar .container-fluid {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin: 0;
        position: relative;
    }
    
    .hero-section {
        text-align: center;
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    .contact-info {
        margin-bottom: 1.5rem;
    }
    
    .section-heading h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem;
        max-width: 50%;
    }

    .navbar-brand.navbar-brand--logo {
        max-width: min(calc(100vw - 3.85rem), 190px);
    }

    .navbar-brand-logo {
        max-height: 28px;
        max-width: 100%;
    }
    
    .navbar-toggler {
        right: 10px;
        top: 10px;
        padding: 0.4rem;
    }
    
    .navbar-toggler-icon {
        width: 1.3em;
        height: 1.3em;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .d-flex.flex-wrap {
        flex-direction: column;
    }
    
    .gap-3 {
        gap: 0.75rem !important;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

/* Loading States */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Form Validation Styles */
.was-validated .form-control:valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322543d' d='m2.3 6.73.94-.94 3.06-3.06-1.06-1.06-2 2L2.3 4.67 1.24 3.61z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23c53030'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4m0-1.4-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --gray-700: #000000;
        --gray-300: #000000;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .form-control {
        border: 2px solid #000000;
    }
}

/* Cookie Consent Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white-color);
    border-top: 3px solid var(--warning-color);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-header h6 {
    color: var(--gray-900);
    font-size: 1.1rem;
}

.cookie-body p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive Cookie Popup */
@media (max-width: 768px) {
    .cookie-content {
        padding: 1rem;
    }
    
    .cookie-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Modal Styles for Order Form */
.modal-content {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition-base);
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Modal header text color */
.modal-header .modal-title {
    color: white !important;
}

.modal-body {
    padding: 2rem;
}

.modal-alert {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
}

.modal-alert .btn-close {
    filter: none;
    opacity: 0.7;
}

.modal-alert .btn-close:hover {
    opacity: 1;
}

/* Order Form Specific Styles */
#orderForm .form-control,
#orderForm .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

#orderForm .form-control:focus,
#orderForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

#orderForm .form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322543d' d='m2.3 6.73.94-.94 2.89 2.89 2.89-2.89.94.94L6.12 9.62z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#orderForm .form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23c53030'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#orderForm .invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

#orderForm .valid-feedback {
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Success Modal Styles */
#successModal .modal-content {
    text-align: center;
}

#successModal .modal-header {
    justify-content: center;
    border-bottom: none;
}

#successModal .modal-body {
    padding: 3rem 2rem;
}

#successModal .fa-check-circle {
    color: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Modal Adjustments */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    #orderForm .form-control,
    #orderForm .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* App Modal Specific Styles */
#appForm .form-control,
#appForm .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

#appForm .form-control:focus,
#appForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

#appForm .form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322543d' d='m2.3 6.73.94-.94 2.89 2.89 2.89-2.89.94.94L6.12 9.62z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#appForm .form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23c53030'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#appForm .invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

#appForm .valid-feedback {
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.app-modal-alert {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
}

.app-modal-alert .btn-close {
    filter: none;
    opacity: 0.7;
}

.app-modal-alert .btn-close:hover {
    opacity: 1;
}

/* App Success Modal Styles */
#appSuccessModal .modal-content {
    text-align: center;
}

#appSuccessModal .modal-header {
    justify-content: center;
    border-bottom: none;
}

#appSuccessModal .modal-body {
    padding: 3rem 2rem;
}

#appSuccessModal .fa-check-circle {
    color: var(--success-color);
    animation: pulse 2s infinite;
}

/* Services Modal Specific Styles */
#servicesForm .form-control,
#servicesForm .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

#servicesForm .form-control:focus,
#servicesForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

#servicesForm .form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322543d' d='m2.3 6.73.94-.94 2.89 2.89 2.89-2.89.94.94L6.12 9.62z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#servicesForm .form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23c53030'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#servicesForm .invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

#servicesForm .valid-feedback {
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.services-modal-alert {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
}

.services-modal-alert .btn-close {
    filter: none;
    opacity: 0.7;
}

.services-modal-alert .btn-close:hover {
    opacity: 1;
}

/* Services Success Modal Styles */
#servicesSuccessModal .modal-content {
    text-align: center;
}

#servicesSuccessModal .modal-header {
    justify-content: center;
    border-bottom: none;
}

#servicesSuccessModal .modal-body {
    padding: 3rem 2rem;
}

#servicesSuccessModal .fa-check-circle {
    color: var(--success-color);
    animation: pulse 2s infinite;
}

/* Fixed Contact Buttons */
.fixed-contact-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
    flex-direction: row;
    gap: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}



.fixed-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.fixed-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: white;
}

.fixed-btn-phone {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.fixed-btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.fixed-btn-email {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

/* Scroll to top button fix */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    padding: 0 !important;
    line-height: 1 !important;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: white;
}

/* Responsive adjustments for fixed buttons */
@media (max-width: 768px) {
    .fixed-contact-buttons {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
    }
    
    .fixed-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
}