/* ========================================
   BeatFocus – Contact & FAQ Page
   Page-specific only. Base from landing.css.
   ======================================== */
@font-face {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 100 700;
    src: url('assets/fonts/MaterialSymbolsRounded.woff2') format('woff2');
    font-display: block;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* Active nav link */
.nav-link-active {
    color: var(--text) !important;
    background: var(--border-light);
}

/* ========================================
   Page Header
   ======================================== */
.cp-page-header {
    position: relative;
    padding: 160px 0 80px;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}
.cp-page-header-bg { position: absolute; inset: 0; pointer-events: none; }
.cp-page-header-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 100%);
}
.cp-page-header-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg), transparent);
}
.cp-page-header-inner {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.cp-page-header-inner .section-tag { margin-bottom: 20px; }
.cp-page-header-inner h1 {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.cp-page-header-inner p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto;
}

/* ========================================
   Main Layout
   ======================================== */
.cp-main { padding-top: 80px; padding-bottom: 120px; }
.cp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* ========================================
   Shared Card Header
   ======================================== */
.cp-form-icon {
    width: 52px; height: 52px;
    background: rgba(255,59,48,0.1);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cp-form-icon .material-symbols-rounded { font-size: 26px; color: var(--primary); }
.cp-form-header,
.cp-faq-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.cp-form-header h2,
.cp-faq-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.cp-form-header p,
.cp-faq-header p {
    font-size: 14px;
    color: var(--text-secondary);
}
.cp-form-header strong { color: var(--text); }

/* ========================================
   Contact Form
   ======================================== */
.cp-form-wrap {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    position: relative;
    overflow: hidden;
}
.cp-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff6b30);
}

/* Fields */
.cp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.cp-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.2px;
}
.cp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.cp-input-wrap > .material-symbols-rounded:first-child {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}
.cp-input-wrap input,
.cp-input-wrap select {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px 12px 44px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.cp-input-wrap input::placeholder { color: var(--text-muted); }
.cp-input-wrap input:focus,
.cp-input-wrap select:focus {
    border-color: rgba(255,59,48,0.5);
    box-shadow: 0 0 0 3px rgba(255,59,48,0.08);
}
.cp-input-wrap input:focus ~ .material-symbols-rounded:first-child,
.cp-input-wrap:focus-within > .material-symbols-rounded:first-child {
    color: var(--primary);
}

/* Select */
.cp-select-wrap select { cursor: pointer; }
.cp-select-wrap select option { background: #1a1a1a; color: var(--text); }
.cp-select-arrow {
    position: absolute;
    right: 12px;
    font-size: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Textarea */
.cp-textarea-wrap {
    position: relative;
}
.cp-textarea-wrap textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    line-height: 1.6;
}
.cp-textarea-wrap textarea::placeholder { color: var(--text-muted); }
.cp-textarea-wrap textarea:focus {
    border-color: rgba(255,59,48,0.5);
    box-shadow: 0 0 0 3px rgba(255,59,48,0.08);
}
.cp-char-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 11px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Field Errors */
.cp-field-error {
    font-size: 12px;
    color: #ff6b6b;
    display: none;
    align-items: center;
    gap: 4px;
}
.cp-field.has-error .cp-field-error { display: flex; }
.cp-field.has-error input,
.cp-field.has-error select,
.cp-field.has-error textarea {
    border-color: rgba(255,107,107,0.5);
}

/* Submit Button */
.cp-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}
.cp-submit:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,59,48,0.25);
}
.cp-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.cp-submit-label { display: flex; align-items: center; gap: 8px; }
.cp-submit-label .material-symbols-rounded { font-size: 18px; }
.cp-submit-loading { display: none; align-items: center; gap: 10px; }
.cp-submit.is-loading .cp-submit-label { display: none; }
.cp-submit.is-loading .cp-submit-loading { display: flex; }

/* Spinner */
.cp-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: cpSpin 0.7s linear infinite;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }

/* Success / Error States */
.cp-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0 16px;
    gap: 12px;
}
.cp-success.is-visible { display: flex; }
.cp-form.is-hidden { display: none; }
.cp-success-icon .material-symbols-rounded {
    font-size: 56px;
    color: #28c840;
}
.cp-success h3 { font-size: 22px; font-weight: 700; }
.cp-success p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.cp-success-reset {
    margin-top: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.cp-success-reset:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.cp-error-banner {
    display: none;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #ff8a8a;
    line-height: 1.5;
    margin-bottom: 20px;
}
.cp-error-banner.is-visible { display: flex; }
.cp-error-banner .material-symbols-rounded { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.cp-error-banner a { color: var(--primary); text-decoration: none; }
.cp-error-banner a:hover { text-decoration: underline; }

/* ========================================
   FAQ
   ======================================== */
.cp-faq-wrap { position: sticky; top: 100px; }
.cp-faq-list { display: flex; flex-direction: column; gap: 0; }

.cp-faq-item {
    border-bottom: 1px solid var(--border);
}
.cp-faq-item:first-child { border-top: 1px solid var(--border); }

.cp-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.cp-faq-q:hover { color: var(--primary); }
.cp-faq-icon {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s;
}
.cp-faq-item.is-open .cp-faq-q { color: var(--primary); }
.cp-faq-item.is-open .cp-faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.cp-faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cp-faq-a-inner {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cp-faq-a p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.cp-inline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.cp-inline-link:hover { text-decoration: underline; }

/* Direct contact hint */
.cp-direct {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.cp-direct .material-symbols-rounded { font-size: 22px; color: var(--primary); flex-shrink: 0; }
.cp-direct p { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.cp-direct-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.cp-direct-link:hover { color: var(--primary); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .cp-grid { grid-template-columns: 1fr; gap: 48px; }
    .cp-faq-wrap { position: static; }
}

@media (max-width: 768px) {
    .cp-page-header { padding: 120px 0 56px; }
    .cp-page-header-inner h1 { font-size: 36px; }
    .cp-page-header-inner p { font-size: 15px; }
    .cp-form-wrap { padding: 24px 20px; }
    .cp-main { padding-top: 48px; padding-bottom: 80px; }
    .cp-faq-q { font-size: 14px; padding: 16px 0; }
}

@media (max-width: 480px) {
    .cp-page-header-inner h1 { font-size: 30px; }
    .cp-form-header, .cp-faq-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
