/**
 * COMPLETE DESIGN FIX - Header + Hero + Wave
 * This file overrides everything to match the required design
 */

/* ==========================================================================
   RESET - Remove conflicting styles
   ========================================================================== */
* {
    box-sizing: border-box;
}

/* ==========================================================================
   HEADER - Transparent Background (Overlays on Hero Image)
   ========================================================================== */
.site-header {
    background: transparent !important;
    color: white !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 25px 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   HERO SECTION - Full Background with More Height
   ========================================================================== */
.hero-section {
    background-color: #fff !important;
    background-image: url('../images/hero-bg.png') !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    background-size: cover !important;
    background-attachment: scroll !important;
    position: relative !important;
    padding: 100px 20px 60px !important;
    margin: 0 !important;
    overflow: visible !important;
    min-height: 420px !important;
}

/* Hero Content */
.hero-content {
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.hero-content h1 {
    font-size: 42px !important;
    color: white !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.2 !important;
}

.hero-content h1 .highlight {
    color: #fbbf24 !important;
}

.hero-content p {
    font-size: 18px !important;
    color: white !important;
    margin: 0 0 40px 0 !important;
    opacity: 0.95 !important;
}

/* ==========================================================================
   SEARCH BAR - Curved White Container (WIDER)
   ========================================================================== */
.hero-search {
    max-width: 950px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 15 !important;
}

.hero-search .search-container {
    display: flex !important;
    align-items: stretch !important;
    background: white !important;
    border-radius: 50px !important;
    padding: 6px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
    gap: 6px !important;
}

.hero-search input[type="text"],
.hero-search input[name="s"] {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    border-radius: 40px !important;
    background: transparent !important;
    min-width: 250px !important;
    color: #374151 !important;
}

.hero-search input::placeholder {
    color: #9ca3af !important;
}

.hero-search select[name="post_type"],
.hero-search .search-type-select {
    border: none !important;
    outline: none !important;
    padding: 14px 24px !important;
    font-size: 14px !important;
    background: #f3f4f6 !important;
    border-radius: 40px !important;
    cursor: pointer !important;
    color: #374151 !important;
    font-weight: 500 !important;
    min-width: 140px !important;
}

.hero-search .btn-search,
.hero-search button[type="submit"] {
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
}

.hero-search .btn-search:hover,
.hero-search button[type="submit"]:hover {
    background: #dc2626 !important;
    transform: translateY(-2px) !important;
}

.hero-search .btn-reset,
.hero-search a.btn-reset {
    background: #6b7280 !important;
    color: white !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
}

.hero-search .btn-reset:hover {
    background: #4b5563 !important;
}

/* ==========================================================================
   WAVE SVG - Bottom Curve (HIDDEN - wave is in background image)
   ========================================================================== */
.hero-wave {
    display: none !important;
}

/* Remove extra space from wave */
.hero-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   SECTIONS AFTER HERO
   ========================================================================== */
.description-section,
.listings-section {
    background: white !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px !important;
    }

    .hero-content p {
        font-size: 16px !important;
    }

    .hero-search .search-container {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 12px !important;
        gap: 10px !important;
    }

    .hero-search input[type="text"],
    .hero-search select,
    .hero-search .btn-search,
    .hero-search .btn-reset {
        width: 100% !important;
        min-width: 100% !important;
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   Header Right Side Layout - Properly Aligned
   ========================================================================== */
.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.header-right .main-navigation {
    display: flex !important;
    align-items: center !important;
}

.header-right .nav-menu {
    display: flex !important;
    gap: 25px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-right .nav-menu li {
    margin: 0 !important;
}

.header-right .nav-menu a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    transition: opacity 0.3s !important;
}

.header-right .nav-menu a:hover {
    opacity: 0.8 !important;
}

/* Hide login button and old header-actions */
.btn-login,
.header-actions {
    display: none !important;
}

/* ==========================================================================
   Razorpay Payment Success Modal
   ========================================================================== */
.payment-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.payment-success-modal {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    animation: slideUp 0.3s;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s;
}

.payment-success-modal h3 {
    font-size: 24px;
    color: #10b981;
    margin-bottom: 10px;
}

.payment-success-modal p {
    color: #666;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* ==========================================================================
   Single Page - Contact Number Section with Payment
   ========================================================================== */
.contact-number-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-number-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1e3a5f;
}

/* Phone Payment Required */
.phone-payment-required {
    text-align: center;
    padding: 40px 20px;
}

.payment-info {
    max-width: 400px;
    margin: 0 auto;
}

.payment-info svg {
    color: #ef4444;
    margin-bottom: 20px;
}

.payment-info h4 {
    font-size: 22px;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.payment-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.payment-info .payment-amount {
    font-size: 24px;
    font-weight: 700;
    color: #ef4444;
}

.btn-pay-now {
    background: #ef4444;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pay-now:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-pay-now:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Phone Number Revealed */
.phone-number-hidden {
    display: none;
}

.phone-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 2px solid #3b82f6;
}

.phone-display svg {
    color: #3b82f6;
}

.phone-link {
    font-size: 24px;
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
}

.phone-link:hover {
    color: #ef4444;
}

/* Meta Grids for Details */
.job-meta-grid,
.rent-meta-grid,
.sell-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.meta-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.meta-item strong {
    display: block;
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 5px;
}

.meta-item span {
    color: #1e3a5f;
    font-size: 16px;
}

/* Single Page Headers */
.single-job-header,
.single-rent-header,
.single-sell-header {
    padding: 30px 0;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 30px;
}

.job-title,
.rent-title,
.sell-title {
    font-size: 32px;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.job-location,
.rent-location,
.sell-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.rent-price,
.sell-price {
    font-size: 28px;
    color: #ef4444;
    margin-top: 15px;
}

/* Details Cards */
.job-details-card,
.rent-details-card,
.sell-details-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.job-details-card h3,
.rent-details-card h3,
.sell-details-card h3 {
    font-size: 20px;
    color: #1e3a5f;
    margin-bottom: 20px;
}

/* Featured Images */
.job-featured-image,
.rent-featured-image,
.sell-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.job-featured-image img,
.rent-featured-image img,
.sell-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Descriptions */
.job-description,
.rent-description,
.sell-description {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.job-description h3,
.rent-description h3,
.sell-description h3 {
    font-size: 20px;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.job-description .content,
.rent-description .content,
.sell-description .content {
    line-height: 1.8;
    color: #374151;
}

/* ==========================================================================
   Payment Section Refinements (Nested in Details Column)
   ========================================================================== */
.business-details-column .contact-number-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: none;
    /* Remove shadow when nested */
}

/* Adjust payment info for smaller column */
.business-details-column .payment-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.business-details-column .payment-info p {
    font-size: 14px;
    margin-bottom: 15px;
}

.business-details-column .payment-info svg {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}

.business-details-column .btn-pay-now {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    /* Full width button in column */
}

/* Hidden container details */
.phone-number-hidden .detail-item.phone-item {
    margin-bottom: 0;
    border: none;
    padding: 0;
}

/* Ensure hidden phone item matches others when revealed */
.phone-number-hidden {
    animation: fadeIn 0.5s;
}

/* Contact display in bottom grid */
.contact-info-item.phone-info-visible {
    display: none;
    /* Hidden by default */
}

/* Show when paid (handled by JS adding a class or inline style) */
.phone-revealed .contact-info-item.phone-info-visible {
    display: flex;
}