.demo-bar12 {
    background: rgb(89 114 173 / 90%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.demo-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.demo-message {
    color: #f8fafc;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInText 1.2s ease;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.demo-btn {
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #6366f1);
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.demo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

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

.demo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

@media (max-width: 768px) {
    .demo-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .demo-message {
        font-size: 14px;
    }

    .demo-btn {
        padding: 9px 20px;
        font-size: 14px;
    }
}

/* Enhanced Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    animation: overlayFadeIn 0.3s ease;
    padding: 20px;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modern-popup {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.4s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    padding: 40px 40px 20px;
    text-align: center;
}

.popup-header h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

#demoRequestForm {
    padding: 0 40px 40px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

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

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.form-group input.verified,
.form-group select.verified,
.form-group textarea.verified {
    border-color: #10b981;
}

.verify-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.verify-status {
    color: #ef4444;
    font-weight: 500;
}

.verified-success {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 500;
}

.verified-icon {
    width: 18px;
    height: 18px;
    fill: #10b981;
}

.error-text {
    display: block;
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
    min-height: 18px;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #fca5a5;
    color: #7f1d1d;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 12px;
}

.error-message svg {
    width: 20px;
    height: 20px;
    fill: #dc2626;
    flex-shrink: 0;
}

.success-message {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 12px;
}

.success-message svg {
    width: 20px;
    height: 20px;
    fill: #059669;
    flex-shrink: 0;
}

.form-footer {
    margin-top: 32px;
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* OTP Popup Styles */
.otp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: overlayFadeIn 0.3s ease;
}

.otp-popup {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    overflow: hidden;
    animation: popupScaleIn 0.4s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes popupScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.otp-header {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    padding: 32px;
    color: white;
    position: relative;
}

.otp-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.otp-header p {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

.otp-header .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.otp-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.otp-content {
    padding: 32px;
}

.contact-display {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 32px;
}

.contact-display .contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-display .contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.contact-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.otp-input-container {
    margin-bottom: 32px;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 56px;
    height: 56px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.otp-input.shake {
    animation: shake 0.5s ease-in-out;
    border-color: #ef4444 !important;
    background: #fee2e2;
}

.otp-input.success {
    animation: successPulse 0.5s ease-in-out;
    border-color: #10b981 !important;
    background: #d1fae5;
    color: #065f46;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #ef4444;
}

.timer-icon {
    width: 20px;
    height: 20px;
    fill: #ef4444;
}

.otp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.resend-btn,
.verify-otp-btn {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resend-btn {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.resend-btn:hover:not(:disabled) {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verify-otp-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.verify-otp-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.verify-otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .modern-popup {
        max-width: 95%;
    }

    .popup-header,
    #demoRequestForm {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .otp-popup {
        width: 95%;
    }

    .otp-input {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .otp-actions {
        grid-template-columns: 1fr;
    }
}