/**
 * FSP Page Template Styles
 * Coming Soon, Policy, Guarantee, and other page templates
 *
 * @package Free_Style_Products
 */

/* ==========================================================================
   Page Templates - Coming Soon & Policy Pages
   ========================================================================== */

/* Coming Soon Hero */
.coming-soon-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-icon {
    margin-bottom: 30px;
    color: var(--hw-primary);
}

.coming-soon-text {
    font-size: 1.5rem;
    color: var(--hw-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.coming-soon-description {
    max-width: 600px;
    margin: 25px auto 40px;
    color: var(--hw-gray-lighter);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Page Hero */
.page-hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--hw-dark) 0%, var(--hw-dark-secondary) 50%, var(--hw-dark-tertiary) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(44, 198, 77, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(44, 198, 77, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Policy Hero */
.policy-hero {
    padding: 120px 0 60px;
    min-height: auto;
}

.policy-hero .hero-title {
    margin-bottom: 15px;
}

/* Policy Content Section */
.policy-section {
    padding: 60px 0 100px;
    background: var(--hw-dark);
}

.policy-content {
    background: var(--hw-dark-secondary);
    border-radius: var(--hw-radius-lg);
    padding: 50px 60px;
    border: 1px solid var(--hw-dark-tertiary);
}

.policy-intro {
    font-size: 1.1rem;
    color: var(--hw-gray-lighter);
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--hw-dark-tertiary);
}

.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hw-white);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hw-primary);
    display: inline-block;
}

.policy-content h2:first-of-type {
    margin-top: 0;
}

.policy-content p {
    color: var(--hw-gray-lighter);
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-content ul {
    margin: 15px 0 25px 20px;
    padding: 0;
}

.policy-content ul li {
    color: var(--hw-gray-lighter);
    margin-bottom: 10px;
    line-height: 1.7;
}

.policy-content ul li::marker {
    color: var(--hw-primary);
}

.policy-content .contact-list {
    list-style: none;
    margin-left: 0;
    background: var(--hw-dark);
    padding: 20px 25px;
    border-radius: var(--hw-radius);
    border-left: 3px solid var(--hw-primary);
}

.policy-content .contact-list li {
    margin-bottom: 8px;
}

.policy-content .contact-list li:last-child {
    margin-bottom: 0;
}

.policy-content .contact-list a {
    color: var(--hw-primary);
    text-decoration: none;
}

.policy-content .contact-list a:hover {
    text-decoration: underline;
}

.policy-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--hw-dark-tertiary);
    color: var(--hw-gray);
    font-size: 0.9rem;
}

/* ==========================================================================
   Content Pages (Guarantee, etc.)
   ========================================================================== */

/* Guarantee Hero */
.guarantee-hero {
    padding: 120px 0 60px;
    min-height: auto;
}

.guarantee-hero .hero-title {
    margin-bottom: 15px;
}

/* Content Section */
.content-section {
    padding: 60px 0 100px;
    background: var(--hw-dark);
}

.content-wrapper {
    background: var(--hw-dark-secondary);
    border-radius: var(--hw-radius-lg);
    padding: 50px 60px;
    border: 1px solid var(--hw-dark-tertiary);
}

.content-intro {
    font-size: 1.1rem;
    color: var(--hw-gray-lighter);
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--hw-dark-tertiary);
}

.content-intro p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-intro p:last-child {
    margin-bottom: 0;
}

.content-intro strong {
    color: var(--hw-white);
}

.content-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hw-white);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hw-primary);
    display: inline-block;
}

.content-heading:first-of-type {
    margin-top: 0;
}

.content-wrapper > p {
    color: var(--hw-gray-lighter);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Guarantee List */
.guarantee-list {
    background: var(--hw-dark);
    padding: 30px;
    border-radius: var(--hw-radius);
    margin: 25px 0;
}

.guarantee-item {
    margin-bottom: 25px;
}

.guarantee-item:last-child {
    margin-bottom: 0;
}

.guarantee-item h4 {
    color: var(--hw-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.guarantee-item p {
    color: var(--hw-gray-lighter);
    line-height: 1.7;
    margin: 0;
}

/* Quality List */
.quality-list {
    margin: 20px 0 30px 20px;
    padding: 0;
}

.quality-list li {
    color: var(--hw-gray-lighter);
    margin-bottom: 12px;
    line-height: 1.7;
}

.quality-list li::marker {
    color: var(--hw-primary);
}

.quality-list li strong {
    color: var(--hw-white);
}

/* Promise Block */
.promise-block {
    border-left: 4px solid var(--hw-primary);
    padding: 20px 25px;
    margin: 30px 0;
    background: rgba(44, 198, 77, 0.05);
    font-style: italic;
    color: var(--hw-gray-lighter);
    border-radius: 0 var(--hw-radius) var(--hw-radius) 0;
}

.promise-block strong {
    color: var(--hw-primary);
    font-style: normal;
}

/* CTA Section */
.cta-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--hw-dark-tertiary);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.fsp-404-page {
    background: var(--hw-dark);
    color: var(--hw-white);
}

.fsp-404-hero {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    background: linear-gradient(135deg, var(--hw-dark) 0%, var(--hw-dark-secondary) 50%, var(--hw-dark-tertiary) 100%);
    overflow: hidden;
}

.fsp-404-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(44, 198, 77, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(44, 198, 77, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.fsp-404-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 900;
    line-height: 1;
    color: var(--hw-primary);
    letter-spacing: -4px;
    margin-bottom: 20px;
    text-shadow: 0 0 80px rgba(44, 198, 77, 0.3);
}

.fsp-404-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--hw-white);
    margin-bottom: 16px;
}

.fsp-404-message {
    font-size: 1.1rem;
    color: var(--hw-gray-lighter);
    margin-bottom: 40px;
    line-height: 1.7;
}

.fsp-404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .fsp-404-hero {
        padding: 100px 0 60px;
    }

    .fsp-404-actions {
        flex-direction: column;
        align-items: center;
    }

    .fsp-404-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Responsive adjustments for content pages */
@media (max-width: 767.98px) {
    .content-wrapper {
        padding: 30px 25px;
    }

    .content-heading {
        font-size: 1.25rem;
    }

    .guarantee-list {
        padding: 20px;
    }

    .cta-section {
        flex-direction: column;
        align-items: center;
    }

    .cta-section .btn {
        width: 100%;
        max-width: 300px;
    }

    .policy-content {
        padding: 30px 25px;
    }

    .policy-content h2 {
        font-size: 1.25rem;
    }

    .coming-soon-description {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* ==========================================================================
   Contract Decorator Page
   ========================================================================== */

.contract-decorator-page {
    background: var(--hw-dark);
    color: var(--hw-white);
}

.contract-section-label {
    margin: 0 0 15px;
    color: var(--hw-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contract-decorator-page .contract-intro {
    padding: clamp(155px, 18vw, 210px) 0 clamp(90px, 10vw, 120px);
    border-bottom: 1px solid rgba(44, 198, 77, 0.24);
    background:
        radial-gradient(circle at 50% 15%, rgba(44, 198, 77, 0.2), transparent 34%),
        linear-gradient(145deg, #101a13 0%, #111412 55%, #171717 100%);
}

.contract-intro-content {
    max-width: 930px;
    margin: 0 auto;
    text-align: center;
}

.contract-section-title {
    margin: 0;
    color: var(--hw-white);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 750;
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.contract-intro .contract-section-title {
    max-width: 900px;
    margin: 0 auto 30px;
    font-size: clamp(2.75rem, 6vw, 4.8rem);
}

.contract-lead {
    max-width: 780px;
    margin: 0 auto;
    color: var(--hw-gray-lighter);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.contract-section-header {
    max-width: 820px;
    margin: 0 auto 56px;
    text-align: center;
}

.contract-decorator-page .contract-pricing {
    padding: 110px 0;
    background:
        radial-gradient(circle at 50% 0, rgba(44, 198, 77, 0.07), transparent 36%),
        var(--hw-dark);
}

.contract-pricing-container {
    max-width: 1240px;
}

.contract-pricing-intro {
    max-width: 720px;
    margin: 22px auto 0;
    color: var(--hw-gray-lighter);
    font-size: 1.05rem;
    line-height: 1.75;
}

.contract-pricing-panel {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid rgba(44, 198, 77, 0.3);
    border-radius: var(--hw-radius-lg);
    background: linear-gradient(145deg, #1b201d, #141615);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.contract-price-label {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    color: var(--hw-primary-light);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contract-table-note {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #343a36;
    border-radius: var(--hw-radius);
    background: #111412;
    color: #b9c0bb;
    font-size: 0.86rem;
    line-height: 1.6;
}

.contract-table-note strong {
    color: var(--hw-primary-light);
}

.contract-table-shell {
    width: 100%;
    max-height: min(720px, 72vh);
    margin: 0;
    overflow: auto;
    border: 1px solid var(--hw-dark-tertiary);
    border-radius: 10px;
    background: var(--hw-dark-secondary);
    box-shadow: var(--hw-shadow-lg);
    scrollbar-color: var(--hw-primary) var(--hw-dark-tertiary);
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

.contract-table-shell:focus-visible {
    outline: 2px solid var(--hw-primary);
    outline-offset: 4px;
}

.contract-pricing-table {
    width: 100%;
    min-width: 1040px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--hw-light-gray);
    font-variant-numeric: tabular-nums;
}

.contract-pricing-table th,
.contract-pricing-table td {
    min-width: 98px;
    padding: 13px 11px;
    border-right: 1px solid var(--hw-dark-tertiary);
    border-bottom: 1px solid var(--hw-dark-tertiary);
    text-align: center;
    white-space: nowrap;
}

.contract-pricing-table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 170px;
    text-align: left;
}

.contract-pricing-table tr > :last-child {
    border-right: 0;
}

.contract-pricing-table tbody tr:last-child > * {
    border-bottom: 0;
}

.contract-pricing-table thead tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom-color: rgba(44, 198, 77, 0.48);
    background: linear-gradient(180deg, var(--hw-primary-light), var(--hw-primary));
    color: #071309;
    font-size: 0.94rem;
    font-weight: 800;
}

.contract-pricing-table thead tr:first-child th:first-child {
    z-index: 4;
}

.contract-pricing-table .contract-bracket-limits th,
.contract-pricing-table .contract-bracket-limits td {
    position: sticky;
    top: 60px;
    z-index: 2;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #29302c;
    color: #c4cbc6;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.contract-pricing-table .contract-bracket-limits th {
    z-index: 3;
}

.contract-pricing-table tbody th {
    background: #202622;
    color: var(--hw-white);
    font-weight: 700;
}

.contract-pricing-table tbody td {
    background: #171a18;
}

.contract-pricing-table tbody tr:nth-child(even) td {
    background: #1d211e;
}

.contract-pricing-table tbody tr:hover th,
.contract-pricing-table tbody tr:hover td {
    background: rgba(44, 198, 77, 0.11);
    color: var(--hw-white);
}

.contract-swipe-hint {
    display: none;
    margin: 14px 0 0;
    color: var(--hw-gray-lighter);
    font-size: 0.82rem;
    text-align: center;
}

.contract-decorator-page .contract-cta {
    padding: 0 0 110px;
    background: var(--hw-dark);
}

.contract-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: clamp(38px, 6vw, 72px);
    border: 1px solid rgba(44, 198, 77, 0.38);
    border-radius: var(--hw-radius-lg);
    background:
        linear-gradient(115deg, rgba(44, 198, 77, 0.13), transparent 55%),
        var(--hw-dark-secondary);
    box-shadow: var(--hw-shadow-lg);
}

.contract-cta-panel > div {
    max-width: 720px;
}

.contract-cta-panel h2 {
    margin: 0 0 15px;
    color: var(--hw-white);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.contract-cta-panel p:last-child {
    margin: 0;
    color: var(--hw-gray-lighter);
    line-height: 1.75;
}

.contract-cta-panel .btn {
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .contract-cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .contract-decorator-page .contract-intro,
    .contract-decorator-page .contract-pricing {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .contract-decorator-page .contract-intro {
        padding-top: 135px;
    }

    .contract-section-header {
        margin-bottom: 40px;
        text-align: left;
    }

    .contract-pricing-panel {
        padding: 14px;
        border-radius: 12px;
    }

    .contract-price-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .contract-pricing-table th,
    .contract-pricing-table td {
        padding: 13px 11px;
    }

    .contract-pricing-table tr > :first-child {
        min-width: 155px;
    }

    .contract-swipe-hint {
        display: block;
    }

    .contract-decorator-page .contract-cta {
        padding-bottom: 75px;
    }

    .contract-cta-panel {
        gap: 32px;
    }

    .contract-cta-panel .btn {
        width: 100%;
    }
}
