/* 
 * WantMattress - Common Page Styles
 * Shared CSS for disclaimer, cookie policy, how we test, about, and contact pages
 * Last updated: January 2025
 */

/* ==========================================================================
   Base
   ========================================================================== */
.page-bg-white { background: #fff; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.page-hero {
    background: linear-gradient(135deg, #041e43 0%, #0cc5de 100%);
    padding: 60px 0;
    position: relative;
    overflow: visible;
}

.page-hero::after {
    content: '';
    display: block;
    clear: both;
}


.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-hero .subtitle {
    color: rgba(255, 255, 255, .9);
    max-width: 700px;
}

.page-hero .last-updated {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    margin-top: 20px;
}

/* Hero Badges */
.hero-badges {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .95);
}

.hero-badge svg {
    width: 24px;
    height: 24px;
    fill: #0cc5de;
}

/* ==========================================================================
   Key Points Section
   ========================================================================== */
.key-points-section {
    background: #f8fafc;
    padding: 50px 0;
    position: relative;
}

.key-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.key-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    border: 1px solid #e8eef3;
    transition: transform .3s ease, box-shadow .3s ease;
}

.key-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}

.key-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(12, 197, 222, .1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.key-card-icon svg {
    width: 26px;
    height: 26px;
    fill: #0cc5de;
}

.key-card h3 {
    font-weight: 600;
    color: #041e43;
    margin-bottom: 10px;
}

.key-card p {
    color: #5a6a7a;
    line-height: 1.6;
    margin: 0;
}

/* Key Points Header */
.key-points-header {
    text-align: center;
    margin-bottom: 10px;
}

.key-points-header h2 {
    font-weight: 600;
    color: #041e43;
    margin-bottom: 10px;
}

.key-points-header p {
    color: #5a6a7a;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ==========================================================================
   Content Section
   ========================================================================== */
.page-content {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 40px;
    padding: 35px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8eef3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.content-section h2 {
    font-weight: 600;
    color: #041e43;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2 .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #0cc5de;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.content-section h3 {
    font-weight: 600;
    color: #041e43;
    margin: 25px 0 12px;
}

.content-section p {
    color: #4a5a6a;
    line-height: 1.75;
    margin-bottom: 15px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* Content Section Lists */
.content-section ul {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.content-section ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #4a5a6a;
    line-height: 1.7;
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230cc5de'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ==========================================================================
   Highlight & Accent Boxes
   ========================================================================== */
.highlight-box {
    background: linear-gradient(135deg, rgba(12, 197, 222, .08) 0%, rgba(4, 30, 67, .05) 100%);
    border-left: 4px solid #0cc5de;
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
    color: #041e43;
}

.accent-box {
    background: rgba(12, 197, 222, .08);
    border-left: 4px solid #0cc5de;
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
}

.accent-box p {
    margin: 0 0 10px 0;
    color: #041e43;
}

.accent-box p:last-child {
    margin-bottom: 0;
}

.accent-box strong {
    display: block;
    margin-bottom: 8px;
    color: #041e43;
}

.accent-box ul {
    margin: 10px 0 0 0;
}

/* ==========================================================================
   Why It Matters Box
   ========================================================================== */
.why-matters-box {
    background: #fff;
    border: 2px solid #0cc5de;
    border-radius: 16px;
    padding: 35px;
    margin: 40px 0;
}

.why-matters-box h3 {
    font-weight: 600;
    color: #041e43;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-matters-box h3 svg {
    width: 28px;
    height: 28px;
    fill: #0cc5de;
}

.why-matters-box p {
    color: #4a5a6a;
    line-height: 1.75;
    margin: 0;
}

/* ==========================================================================
   Contact CTA Box
   ========================================================================== */
.cta-box {
    background: linear-gradient(135deg, #041e43 0%, #0a2f5a 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(12, 197, 222, .2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box h2,
.cta-box p {
    color: #fff;
    position: relative;
}

.cta-box h2 {
    font-weight: 600;
    margin-bottom: 15px;
}

.cta-box p {
    color: rgba(255, 255, 255, .85);
    margin-bottom: 25px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0cc5de;
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    position: relative;
}

.btn-cta:hover {
    background: #fff;
    color: #041e43;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}

.btn-cta svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Info Cards (for contact page and similar)
   ========================================================================== */
.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    border: 1px solid #e8eef3;
    transition: transform .3s ease, box-shadow .3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}

.info-card .icon {
    width: 50px;
    height: 50px;
    background: rgba(12, 197, 222, .1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.info-card .icon svg {
    width: 26px;
    height: 26px;
    fill: #0cc5de;
}

.info-card h3 {
    font-weight: 600;
    color: #041e43;
    margin-bottom: 8px;
}

.info-card p {
    color: #5a6a7a;
    margin: 0;
    line-height: 1.6;
}

.info-card a {
    color: #0cc5de;
    text-decoration: none;
    font-weight: 600;
    transition: color .3s;
}

.info-card a:hover {
    color: #041e43;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #041e43;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e8eef3;
    border-radius: 10px;
    transition: all .3s ease;
    font-size: 16px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0cc5de;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(12, 197, 222, .1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #041e43 0%, #0a2f5a 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    font-size: 16px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 30, 67, .3);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   Team Section (About page)
   ========================================================================== */
.team-section {
    background: #f8fafc;
    padding: 50px 0;
}

.team-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.team-section-header h2 {
    font-weight: 600;
    color: #041e43;
    margin-bottom: 10px;
}

.team-section-header p {
    color: #5a6a7a;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0;
    }

    .hero-badges {
        gap: 15px;
    }

    .content-section {
        padding: 25px;
    }

    .cta-box {
        padding: 35px 25px;
    }

    .key-points-grid {
        grid-template-columns: 1fr;
    }
}
