/* =====================================================
   DEMO REQUEST MODAL
   ===================================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Container */
.modal-container {
    position: relative;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #000000 0%, #0a0a0f 50%, #000000 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 24px;
    padding: 40px;
    box-shadow:
        0 0 60px rgba(212, 175, 55, 0.3),
        inset 0 0 80px rgba(168, 85, 247, 0.08);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.4s ease;
}

.modal-container.modal-wide {
    max-width: 900px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--gold-400);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-500);
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 36px;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--gold-500), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Form Styles */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.label-icon {
    font-size: 18px;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease;
}

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

.form-input:focus {
    outline: none;
    border-color: var(--gold-500);
    background: rgba(10, 10, 15, 1);
    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.1),
        0 0 20px rgba(212, 175, 55, 0.2);
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 12px;
}

.country-select {
    width: 120px;
    padding: 14px 12px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-select:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.phone-input {
    flex: 1;
}

/* Submit Button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gold-500), var(--purple-500));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(168, 85, 247, 0.3);
}

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

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

/* Form Note */
.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Calendar View */
.calendar-header {
    margin-bottom: 24px;
}

.btn-back {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--gold-400);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.btn-back:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-500);
}

.calendar-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Calendly Embed (Generic Calendar Container) */
.calendly-embed {
    min-height: 500px;
    height: 70vh;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    /* Fondo blanco para el contenido de Google */
    position: relative;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 10px;
}

/* Efecto de resplandor sutil para el calendario */
.calendly-embed::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold-500), var(--purple-500));
    z-index: -1;
    border-radius: 22px;
    opacity: 0.3;
}

/* Calendly Placeholder */
.calendly-placeholder {
    padding: 40px;
    text-align: center;
    background: rgba(10, 10, 15, 0.5);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.calendly-placeholder h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.calendly-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.calendly-placeholder ol {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.calendly-placeholder ol li {
    margin-bottom: 8px;
}

.calendly-placeholder a {
    color: var(--gold-400);
    text-decoration: underline;
}

.calendly-placeholder code {
    background: rgba(212, 175, 55, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--gold-400);
    font-family: 'Courier New', monospace;
}

.placeholder-note {
    font-size: 14px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 767px) {
    .modal-container {
        padding: 24px 16px;
        margin: 10px;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .modal-icon {
        font-size: 40px;
        margin-bottom: 8px;
    }

    .calendly-embed {
        min-height: 450px;
        height: 60vh;
    }

    .phone-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .country-select {
        width: 100%;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}