/* =========================================================
   HAPPY WALLS — FRONTEND DOWNLOADS PAGE STYLES
   ========================================================= */

/* Hero Banner (Matching contact-hero from contact.css) */
.downloads-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(21, 157, 204, 0.35),
            transparent 32%
        ),
        radial-gradient(
            circle at 20% 90%,
            rgba(245, 185, 0, 0.20),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #071d3b 0%,
            #0d315b 48%,
            #159dcc 100%
        );
}

.downloads-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(255,255,255,.055) 1px,
            transparent 1px
        );

    background-size: 70px 70px;
    opacity: .45;
}

.downloads-hero::after {
    content: "";
    position: absolute;

    width: 600px;
    height: 600px;

    right: -180px;
    top: -280px;

    border: 70px solid rgba(255,255,255,.055);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.downloads-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 24, 52, .30),
            transparent 70%
        );

    z-index: 1;
}

.downloads-hero .container {
    position: relative;
    z-index: 2;
}

.downloads-hero-content {
    max-width: 680px;
    padding: 60px 0;
    color: #fff;
}

.downloads-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #ffc72c;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.downloads-hero-label::before {
    content: "";
    width: 35px;
    height: 3px;
    border-radius: 3px;
    background: #ffc72c;
}

.downloads-hero-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.1;
    font-weight: 800;
}

/* Downloads Main Section */
.downloads-section {
    padding: 50px 0 80px;
    background: #ffffff;
}

/* Centered Title */
.downloads-header-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-display);
    color: #15294a;
    margin-bottom: 35px;
}

/* Tabs Navigation Bar */
.downloads-tabs-container {
    margin-bottom: 45px;
    border-bottom: 1px solid #e8edf2;
}

.downloads-tabs-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.downloads-tabs-nav::-webkit-scrollbar {
    display: none;
}

.downloads-tab-item {
    flex-shrink: 0;
}

.downloads-tab-link {
    display: block;
    padding: 12px 6px;
    font-size: 16px;
    font-weight: 600;
    color: #666666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.downloads-tab-link:hover {
    color: #159dcc;
}

.downloads-tab-link.active {
    color: #15294a;
    font-weight: 800;
    border-bottom-color: #159dcc;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* Download Card */
.download-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    box-shadow: 0 10px 30px rgba(21, 41, 74, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(21, 41, 74, 0.12);
}

/* Preview Box */
.download-thumb-box {
    position: relative;
    width: 100%;
    height: 260px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.download-thumb-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.download-icon-fallback {
    font-size: 64px;
    color: #159dcc;
}

/* Card Body */
.download-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.download-card-title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
    color: #15294a;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

/* Card Footer Actions */
.download-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.download-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #159dcc;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.download-pdf-btn:hover {
    color: #15294a;
    transform: translateX(2px);
}

/* Share Icons */
.download-share-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn-wa {
    background: #25D366;
}

.share-btn-mail {
    background: #e53935;
}

/* Empty State */
.downloads-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    box-shadow: 0 10px 30px rgba(21, 41, 74, 0.04);
}

.downloads-empty i {
    font-size: 50px;
    color: #94a3b8;
    margin-bottom: 15px;
    display: inline-block;
}

.downloads-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #15294a;
    margin-bottom: 8px;
}

.downloads-empty p {
    color: #666666;
    margin: 0;
}

/* =========================================================
   LEAD CAPTURE MODAL STYLES (THEME MATCHED)
   ========================================================= */

.lead-modal-content {
    background: #ffffff !important;
    border: 1px solid #e8edf2;
    border-top: 4px solid #159dcc !important;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 20px 50px rgba(21, 41, 74, 0.18);
    position: relative;
}

.lead-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lead-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.lead-modal-title {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-display);
    color: #15294a;
    text-align: center;
    margin-bottom: 25px;
}

.lead-form-label {
    display: block;
    margin-bottom: 6px;
    color: #15294a;
    font-size: 14px;
    font-weight: 600;
}

.lead-form-label span {
    color: #e53935;
}

.lead-form-input,
.lead-form-select {
    height: 52px;
    background: #ffffff !important;
    border: 1px solid #dce3ea !important;
    border-radius: 8px !important;
    padding: 0 16px;
    font-size: 15px;
    color: #15294a;
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form-input::placeholder {
    color: #9ba5af;
}

.lead-form-input:focus,
.lead-form-select:focus {
    border-color: #159dcc !important;
    box-shadow: 0 0 0 3px rgba(21, 157, 204, 0.10) !important;
}

/* Phone input group with country code */
.lead-phone-group {
    display: flex;
    background: #ffffff;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    overflow: hidden;
    height: 52px;
    transition: border-color 0.2s ease;
}

.lead-phone-group:focus-within {
    border-color: #159dcc;
    box-shadow: 0 0 0 3px rgba(21, 157, 204, 0.10);
}

.lead-phone-code {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: #f8fafc;
    border-right: 1px solid #dce3ea;
    font-size: 14px;
    font-weight: 600;
    color: #15294a;
    flex-shrink: 0;
}

.lead-phone-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    height: 100% !important;
}

/* Modal Submit Button */
.lead-submit-btn {
    width: 100%;
    min-height: 52px;
    background: #15294a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.lead-submit-btn:hover {
    background: #159dcc;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 157, 204, 0.25);
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .downloads-hero {
        min-height: 380px;
    }
}

@media (max-width: 767.98px) {
    .downloads-hero {
        min-height: 340px;
    }

    .downloads-hero-content {
        padding: 50px 20px;
    }

    .downloads-hero-content h1 {
        font-size: 40px;
    }

    .downloads-header-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .downloads-tabs-nav {
        gap: 15px;
    }

    .downloads-tab-link {
        font-size: 14.5px;
        padding: 10px 4px;
    }

    .downloads-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .download-thumb-box {
        height: 240px;
    }

    .lead-modal-content {
        padding: 25px 20px;
    }
}
