/* Consulting Page Styles - Light Theme */

/* Page Hero */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background: var(--bg-page);
    overflow: hidden;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(10, 22, 40, 0.75), rgba(10, 22, 40, 0.9)),
        url('../../images/banner.png') center center / cover no-repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-label {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 2px;
    margin-bottom: 32px;
    font-weight: 600;
    border-left: 3px solid var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -1px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.page-hero h1 span:last-child {
    display: block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

/* Revealed State for Hero */
.hero-label.revealed,
.page-hero h1.revealed,
.hero-subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Partner Types Section */
.partner-types {
    background: var(--bg-surface);
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin: 0 auto 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-title);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.6;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.type-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    border-radius: 4px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    text-align: center;
}

.type-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.type-card:hover {
    background: rgba(59, 130, 246, 0.03);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.type-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: var(--primary);
    font-size: 2rem;
    transition: all 0.4s ease;
}

.type-card:hover .type-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.type-card h3 {
    color: var(--text-title);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.type-card p {
    color: var(--text-body);
    font-size: 1.1rem;
    line-height: 1.6;
}

.type-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
}

.type-features li {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
}

.type-features li:last-child {
    margin-bottom: 0;
}

.type-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 0.75rem;
}

/* Value Section */
.value-section {
    background: #f0f4f8;
    padding: 100px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.value-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.value-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    background: rgba(59, 130, 246, 0.03);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.value-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
}

.value-card h3 {
    color: var(--text-title);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.value-card p {
    color: var(--text-body);
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Consulting Form Section */
.consulting-form-section {
    background: var(--bg-surface);
    padding: 100px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);

}

.consulting-form-wrapper {
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.1s;
}

.consulting-form-wrapper.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 表單元件（與 contact.css 共用命名） */
.contact-form {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 48px 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    max-width: 960px;
    margin: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.form-group:not(.form-row .form-group) {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 3px;
}

.req {
    color: #ef4444;
    font-size: 0.9rem;
    line-height: 1;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-body);
    background: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-control.error {
    border-color: #ef4444;
    background: #fff5f5;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-error {
    font-size: 0.8rem;
    color: #ef4444;
    min-height: 18px;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
    gap: 16px;
    flex-wrap: wrap;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    white-space: nowrap;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-result {
    margin-top: 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.4s ease,
        padding 0.3s ease;
}

.form-result.success,
.form-result.error {
    max-height: 80px;
    padding: 14px 20px;
}

.form-result.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.form-result.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #991b1b;
}

/* Responsive */
@media (max-width: 1024px) {
    .types-grid {
        grid-template-columns: 1fr;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 20px 70px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-background {
        background:
            linear-gradient(to bottom, rgba(10, 22, 40, 0.75), rgba(10, 22, 40, 0.9)),
            url('../../images/banner-mobile.png') center center / cover no-repeat;
    }

    .partner-types {
        padding: 60px 20px;
    }

    .value-section {
        padding: 60px 20px;
    }

    .consulting-form-section {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .type-card {
        padding: 30px 20px;
    }

    .value-card {
        padding: 28px 20px;
        text-align: center;
    }

    .contact-form {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}
