/* Book Demo Form Styles */
.book-demo-section {
    padding: 115px 0 60px;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-container {
    max-width: 900px;
    width: 100%;
    padding: 0 16px;
    position: relative;
}

@media (min-width: 480px) {
    .demo-container {
        padding: 0 24px;
    }
}

.demo-header {
    text-align: center;
    margin-bottom: 40px;
}

.demo-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-subtle);
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.demo-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0;
}

@media (min-width: 480px) {
    .demo-title {
        font-size: 42px;
    }
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

/* Demo Steps */
.demo-step {
    display: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
    padding-top: 20px;
}

.demo-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
    margin: 0 auto 20px auto;
    padding: 6px 16px;
    background: var(--bg-subtle);
    border-radius: 50px;
    display: inline-block;
    width: auto;
    border: 1px solid var(--border-color);
}

.step-question {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin: 0 auto 24px auto;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 100%;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    min-height: 56px;
    position: relative;
}

.service-card span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.service-card .check-icon {
    display: none !important;
    order: 2;
}

.service-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.service-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
    position: relative;
}

.service-card.selected .check-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    margin-left: 6px;
    flex-shrink: 0;
}


.service-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 16px;
    flex-shrink: 0;
}

/* Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.provider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 28px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 200px;
    justify-content: flex-start;
    position: relative;
}

.provider-card:hover {
    border-color: #b19cd9;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(177, 156, 217, 0.2);
}

.provider-card.selected {
    border-color: #b19cd9;
    background: linear-gradient(135deg, rgba(177, 156, 217, 0.08) 0%, rgba(177, 156, 217, 0.03) 100%);
    box-shadow: 0 4px 16px rgba(177, 156, 217, 0.15);
}

.provider-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 60px;
    width: 100%;
}

.provider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b19cd9;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.provider-card:hover .provider-dots .dot {
    opacity: 0.8;
    transform: scale(1.1);
}

.provider-card.selected .provider-dots .dot {
    background: #b19cd9;
    opacity: 0.9;
}

.provider-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.provider-label .check-icon {
    display: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.provider-card.selected .provider-label .check-icon {
    display: inline-flex;
}

.provider-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100% !important;
    max-width: 600px !important;
    margin-bottom: 0;
    box-sizing: border-box;
}

.contact-form .form-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--text-color);
    box-sizing: border-box;
    height: 50px;
    font-weight: 400;
}

.form-group input:hover:not(:disabled) {
    border-color: #d1d5db;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.form-group input.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group input.valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group input.invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.form-group label::after {
    content: '*';
    color: #ef4444;
    font-weight: 600;
    margin-left: 2px;
}


.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group input.valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group input.invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label::after {
    content: '*';
    color: #ef4444;
    font-weight: 600;
}

.form-group input:valid + .field-hint,
.form-group input:invalid + .field-hint {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    color: var(--text-muted);
}

.form-group input.invalid + .field-hint {
    color: #ef4444;
}

.form-group input.valid + .field-hint {
    color: #10b981;
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    position: relative;
}

.phone-divider {
    width: 1px;
    height: 32px;
    background: #e0e0e0;
    flex-shrink: 0;
    margin: 0;
    align-self: center;
}

.country-code-wrapper {
    position: relative;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: #ffffff;
    height: 50px;
    flex-shrink: 0;
    /* min-width: 140px; */
    display: flex;
    align-items: center;
}

.country-select-trigger {
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 100%;
    cursor: pointer;
    gap: 8px;
    transition: var(--transition);
}

.country-select-trigger:hover {
    background: var(--bg-light);
}

.country-select-trigger.active {
    background: var(--bg-light);
}

.country-select-trigger i {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
    transition: transform 0.2s ease;
}

.country-select-trigger.active i {
    transform: rotate(180deg);
}

.country-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.country-flag .fi {
    font-size: 20px;
    width: 24px;
    height: 18px;
    border-radius: 2px;
    display: block;
}

.country-code-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 380px;
    min-width: 320px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    max-height: 320px;
    overflow: hidden;
    flex-direction: column;
}

.country-dropdown.active {
    display: flex;
}

.country-search-wrapper {
    position: relative;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.country-search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.country-search {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.country-search:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.country-list {
    overflow-y: auto;
    max-height: 240px;
    padding: 4px 0;
}

.country-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    gap: 12px;
    transition: var(--transition);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.country-option:hover {
    background: var(--bg-light);
}

.country-option.selected {
    background: rgba(102, 126, 234, 0.1);
}

.country-option.hidden {
    display: none;
}

.country-option .fi {
    font-size: 18px;
    width: 22px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

.country-option .country-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 400;
}

.country-option .country-code-option {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: auto;
}

.country-code-wrapper:focus-within,
.country-code-wrapper.active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.country-code-wrapper:hover {
    border-color: #667eea;
}

/* Phone Input - Simple field matching other inputs exactly */
#phone {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--text-color);
    box-sizing: border-box;
    height: 50px;
    width: 100%;
}

#phone.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

#phone.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.phone-input-container:focus-within #phone,
#phone:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-input-container:focus-within .country-code-wrapper {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-input-container:focus-within .phone-divider {
    background: #667eea;
}

#phone::placeholder {
    color: var(--text-muted);
}

/* Continue Button */
.btn-continue {
    padding: 14px 40px;
    min-width: 180px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-continue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-continue:hover::before {
    left: 100%;
}

.btn-continue:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 0 20px rgba(118, 75, 162, 0.3);
}

.btn-continue:active {
    transform: translateY(0);
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-submit {
    min-width: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5), 0 0 20px rgba(118, 75, 162, 0.4);
    transform: translateY(-2px);
}

.btn-submit i {
    margin-right: 6px;
    font-size: 14px;
}

/* Back Button */
.btn-back {
    padding: 14px 28px;
    min-width: 120px;
    background: #ffffff;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-back i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    background: var(--bg-light);
    border-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-back:hover i {
    transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 768px) {
    .demo-title {
        font-size: 32px;
    }
    
    .step-question {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    
    .step-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-continue,
    .btn-back {
        width: 100%;
        min-width: auto;
        padding: 16px 32px;
    }
    
    /* Phone field responsive - tablet */
    .country-dropdown {
        width: 360px;
        min-width: 300px;
        max-height: 280px;
    }
    
    .country-code-select {
        min-width: 90px;
        padding: 12px 8px;
        padding-right: 28px;
        font-size: 14px;
    }
    
    #phone {
        padding: 12px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .demo-title {
        font-size: 28px;
    }
    
    .step-question {
        font-size: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .providers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 32px 0 24px;
    }
    
    .provider-card {
        padding: 24px 16px;
        min-height: 160px;
    }
    
    .provider-dots {
        margin-bottom: 16px;
        min-height: 50px;
    }
    
    .provider-dots .dot {
        width: 7px;
        height: 7px;
    }
    
    .provider-label {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .provider-count {
        font-size: 13px;
    }
    
    /* Phone field responsive - mobile */
    .country-code-wrapper {
        min-width: 120px;
        height: 50px;
    }
    
    .country-select-trigger {
        padding: 0 8px;
        gap: 6px;
    }
    
    .country-code-text {
        font-size: 13px;
    }
    
    .country-flag .fi {
        font-size: 16px;
        width: 20px;
        height: 15px;
    }
    
    .phone-divider {
        height: 32px;
    }
    
    .country-dropdown {
        width: calc(100vw - 32px);
        max-width: 360px;
        min-width: 280px;
        max-height: 260px;
        left: 0;
        right: auto;
    }
    
    .country-list {
        max-height: 180px;
    }
    
    .country-option {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .country-option .fi {
        font-size: 16px;
        width: 20px;
        height: 15px;
    }
    
    .country-option .country-name,
    .country-option .country-code-option {
        font-size: 13px;
    }
    
    #phone {
        padding: 12px 14px;
        font-size: 14px;
        height: 50px;
    }
    
    .contact-form {
        max-width: 100% !important;
        padding: 0 8px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
        height: 44px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Success Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-content {
    padding: 48px 40px;
    text-align: center;
    position: relative;
}

.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupIconBounce 0.6s ease;
}

.popup-icon i {
    font-size: 40px;
    color: #ffffff;
}

@keyframes popupIconBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.popup-message {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 12px;
}

.popup-submessage {
    font-size: 14px;
    color: #888;
    margin: 0 0 32px;
    font-style: italic;
}

.popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-popup-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid #000;
}

.btn-popup-primary:hover {
    background: transparent;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Popup Styles */
@media (max-width: 768px) {
    .popup-container {
        max-width: 95%;
        border-radius: 20px;
    }

    .popup-content {
        padding: 40px 24px;
    }

    .popup-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .popup-icon i {
        font-size: 35px;
    }

    .popup-title {
        font-size: 26px;
    }

    .popup-message {
        font-size: 15px;
    }

    .popup-submessage {
        font-size: 13px;
    }

    .btn-popup-primary {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }
}


