/* Shared enquiry form styles — used by index.php and college landing pages */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --success-dark: #15803d;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg-soft: #f8fafc;
    --bg-card: #ffffff;
    --danger: #dc2626;
}

.form-shell {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, .07);
    overflow: hidden;
}

.form-shell-header {
    padding: 28px 24px 16px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc 60%, #eefdf3);
    border-bottom: 1px solid var(--border);
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dbeafe;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-badge.closed {
    background: #fee2e2;
    color: #991b1b;
}

.page-title {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    color: var(--text);
    font-weight: 800;
}

.page-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 650px;
}

.form-shell-body {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 15px;
    background: #fff;
    transition: .2s ease;
    color: var(--text);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.phone-row,
.otp-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.phone-row input,
.otp-row input {
    flex: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: .2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn:disabled,
.btn[disabled] {
    opacity: .65;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary:disabled,
.btn-primary[disabled] {
    background: #93c5fd;
    color: #fff;
}

.btn-success:disabled,
.btn-success[disabled] {
    background: #86efac;
    color: #fff;
}

.btn-submit {
    background: #111827;
    color: #fff;
    width: 100%;
    min-height: 54px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-submit:hover {
    background: #000;
}

.message-box {
    display: none;
    margin: 0 auto 18px;
    max-width: 820px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.message-success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.otp-panel {
    display: none;
    margin-top: 10px;
    padding: 16px;
    border: 1px dashed #bfdbfe;
    border-radius: 16px;
    background: #f8fbff;
}

.otp-panel.active {
    display: block;
}

.otp-input-wrap {
    position: relative;
}

.otp-status {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    color: var(--success-dark);
    font-weight: 700;
}

.otp-status.error {
    color: #b91c1c;
}

.timer-row {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.timer-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 12px;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.link-btn[disabled] {
    color: #9ca3af;
    cursor: not-allowed;
}

.form-note {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.5;
}

.muted {
    color: var(--muted);
}

.otp-helper {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.closed-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: #92400e;
}

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

    .phone-row,
    .otp-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .form-shell-header,
    .form-shell-body {
        padding: 18px;
    }

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

    .page-subtitle {
        font-size: 14px;
    }

    .form-group input,
    .form-group select {
        min-height: 54px;
        font-size: 16px;
    }

    .btn-submit {
        min-height: 56px;
        font-size: 17px;
    }

    .otp-panel {
        padding: 14px;
    }
}
