/* ============================================
   COROAMBRA — Booking Page Styles
   ============================================ */

.book-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.book-glow {
    position: absolute;
    top: 10%;
    left: 30%;
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.book-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* --- Left: Info --- */
.book-info {
    padding-top: 20px;
}

.book-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 20px;
}

.book-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 48px;
}

.book-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.book-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.book-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    background: rgba(99, 102, 241, 0.06);
}

.book-feature h4 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.book-feature p {
    font-size: 0.8625rem;
    color: var(--text-dim);
    line-height: 1.55;
}

/* --- Right: Form --- */
.book-form-wrap {
    position: relative;
}

.book-form {
    padding: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.book-form::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0.5;
    z-index: 0;
}

.book-form > * {
    position: relative;
    z-index: 1;
}

.form-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.form-sub {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 32px;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

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

.optional {
    color: var(--text-dim);
    font-weight: 400;
}

/* Input Wrapper */
.input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
    color: var(--text-dim);
}

.input-wrap:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(99, 102, 241, 0.03);
}

.input-wrap:focus-within svg {
    color: var(--accent-1);
}

.input-wrap.error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-wrap input,
.textarea-wrap textarea {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.5;
}

.input-wrap input::placeholder,
.textarea-wrap textarea::placeholder {
    color: var(--text-dim);
}

.textarea-wrap {
    align-items: flex-start;
}

.textarea-wrap textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
}

/* Agent Type Selection */
.agent-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 2px;
    border-radius: 12px;
    transition: box-shadow 0.3s;
}

.agent-options.error {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
    border-radius: 14px;
}

.agent-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.agent-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    color: var(--text-dim);
}

.agent-option-card span {
    font-size: 0.8125rem;
    font-weight: 500;
}

.agent-option-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.agent-option input:checked + .agent-option-card {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.08);
    color: var(--white);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Submit Button */
.btn-submit {
    margin-top: 8px;
    position: relative;
}

.btn-submit .btn-loader {
    display: none;
}

.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-arrow { opacity: 0; }
.btn-submit.loading .btn-loader {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.form-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--text-dim);
}

/* --- Success State --- */
.book-success {
    display: none;
    text-align: center;
    padding: 60px 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.book-success.show {
    animation: successIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes successIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    margin-bottom: 24px;
    animation: successPulse 2s ease-in-out infinite;
}

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

.success-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.success-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 380px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .book-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .book-info { padding-top: 0; }
    .book-section { padding: 100px 0 60px; }
}

@media (max-width: 540px) {
    .book-form { padding: 28px 20px; }
    .agent-options { grid-template-columns: 1fr; }
    .book-title { font-size: 1.75rem; }
}
