/* ============================================
   IBT TOPIK - Support Page Styles
   ============================================ */

.support-page {
    min-height: 100vh;
    background: white;
}

/* Hero Section */
.support-hero {
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.support-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/hangang.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.support-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.7) 0%, rgba(17, 24, 39, 0.75) 100%);
    z-index: 1;
}

.support-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.support-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
}

.support-hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Tab Navigation */
.tab-nav {
    position: sticky;
    top: 72px;
    z-index: 40;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-nav-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-500);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--gray-700);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.tab-content {
    background: var(--gray-100);
    min-height: 600px;
    padding: 60px 0;
}

.tab-panel {
    display: none;
}

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

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    margin-bottom: 32px;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.faq-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.faq-btn:hover {
    background: var(--gray-50);
}

.faq-btn span {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    padding-right: 16px;
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke: var(--gray-400);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 24px 24px;
    background: #eff6ff;
}

.faq-answer-inner p {
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0;
}

/* FAQ CTA */
.faq-cta {
    background: var(--gray-900);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.faq-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    font-size: 16px;
}

.faq-cta button {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-cta button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.contact-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.contact-desc {
    color: var(--gray-500);
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.form-label .required {
    color: #EF4444;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary);
}

select.form-input {
    cursor: pointer;
    background: white;
}

textarea.form-input {
    resize: vertical;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    cursor: pointer;
    background: var(--gray-50);
}

.file-label span {
    color: var(--gray-600);
    font-size: 14px;
}

.file-desc {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 8px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.contact-hours {
    margin-top: 32px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.contact-hours p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0;
}

/* Notice Section */
.notice-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.notice-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    padding: 16px 24px;
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 700;
    color: var(--gray-600);
    font-size: 14px;
}

.notice-item {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.2s ease;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: var(--gray-50);
}

.notice-item > div:first-child {
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

.notice-item > div:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-item > div:nth-child(2) span:first-child {
    color: var(--gray-900);
    font-weight: 500;
}

.notice-item > div:last-child {
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

.new-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: #EF4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .support-hero {
        min-height: 350px;
        padding: 100px 24px 60px;
    }

    .support-hero-title {
        font-size: 32px;
    }

    .tab-btn {
        padding: 16px 20px;
        font-size: 14px;
    }

    .contact-card {
        padding: 24px;
    }

    .notice-header {
        grid-template-columns: 50px 1fr 80px;
        padding: 12px 16px;
        font-size: 12px;
    }

    .notice-item {
        grid-template-columns: 50px 1fr 80px;
        padding: 16px;
    }

    .notice-item > div:nth-child(2) {
        flex-wrap: wrap;
        gap: 6px;
    }

    .faq-btn span {
        font-size: 14px;
    }

    .faq-answer-inner p {
        font-size: 14px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .support-hero-title {
        font-size: 28px;
    }

    .notice-header {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .notice-header > div:first-child,
    .notice-header > div:last-child {
        display: none;
    }

    .notice-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .notice-item > div:first-child {
        display: none;
    }

    .notice-item > div:last-child {
        text-align: left;
        font-size: 12px;
    }
}
