/* Custom styles for NovaMira Premium Submit Form (Hybrid Design) */

body.nm-dashboard-active {
    background-color: #f8fafc !important;
}

/* Center and constrain submit form */
body.nm-dashboard-active #submit_property_form {
    max-width: 880px !important;
    margin: 40px auto !important;
    padding: 0 15px !important;
}

/* Convert native block wrappers into premium Cards */
body.nm-dashboard-active .dashboard-content-block-wrap {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04) !important;
    padding: 35px !important;
    margin-bottom: 35px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

body.nm-dashboard-active .dashboard-content-block-wrap:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(238, 120, 56, 0.18) !important;
}

/* Reset inner blocks so they don't look nested */
body.nm-dashboard-active .dashboard-content-block {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Hide native section titles so we use the 3D headers */
body.nm-dashboard-active .dashboard-content-block-wrap > h2,
body.nm-dashboard-active .dashboard-content-block-wrap > .block-title {
    display: none !important;
}

/* Hero Banner Styles */
.nm-dashboard-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 10px;
}

.nm-hero-pill {
    background: #fff5ef;
    color: #ee7838;
    border: 1px solid rgba(238, 120, 56, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nm-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px 0;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.nm-hero-desc {
    font-size: 17px;
    color: #475569;
    margin: 0 0 20px 0;
}

/* WhatsApp Banner Announcement */
.nm-whatsapp-announcement {
    background: #e6fcf5;
    border: 1px solid #c3fae8;
    border-radius: 14px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: left;
    max-width: 800px;
    margin: 25px auto 0 auto;
}

.nm-wa-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nm-wa-icon {
    font-size: 26px;
}

.nm-wa-text strong {
    color: #0c8599;
    font-size: 15px;
    display: block;
    margin-bottom: 2px;
}

.nm-wa-text p {
    margin: 0;
    font-size: 13px;
    color: #495057;
}

.nm-wa-btn {
    background: #12b886;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(18, 184, 134, 0.15);
}

.nm-wa-btn:hover {
    background: #0ca678;
    transform: translateY(-1px);
}

/* Card Header with 3D Illustration */
.nm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.nm-card-header-text {
    flex: 1;
    padding-right: 20px;
}

.nm-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.3px;
}

.nm-card-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 !important;
}

.nm-card-illustration {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.06));
}

/* Category Grid Selection */
.nm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.nm-selection-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    user-select: none;
}

.nm-selection-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.nm-selection-card.selected {
    border-color: #ee7838;
    background: #fffbf9;
    box-shadow: 0 0 0 3px rgba(238, 120, 56, 0.1);
}

.nm-selection-card-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 12px;
}

.nm-selection-card-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.nm-selection-card-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

/* Rental Status Grid Selection */
.nm-rental-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.nm-rental-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    transition: all 0.2s ease;
    user-select: none;
}

.nm-rental-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.nm-rental-card.selected {
    border-color: #ee7838;
    background: #fffbf9;
    box-shadow: 0 0 0 3px rgba(238, 120, 56, 0.15);
}

.nm-rental-icon {
    font-size: 28px;
}

.nm-rental-text {
    display: flex;
    flex-direction: column;
}

.nm-rental-title {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 2px;
}

.nm-rental-desc {
    font-size: 12px;
    color: #64748b;
}

/* Input Help text */
.nm-input-help {
    font-size: 12px;
    color: #64748b;
    margin-top: -4px;
    margin-bottom: 15px;
}

.nm-phone-help {
    margin-top: 6px;
    margin-bottom: 0;
}

/* Availability Group inside price */
.nm-availability-group {
    width: 100%;
}

.nm-availability-group label {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #2d3748 !important;
    margin-bottom: 5px !important;
}

.nm-availability-group select {
    max-width: 400px;
    border: 1.5px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    height: 44px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

/* Premium form control styling overrides */
body.nm-dashboard-active .form-control {
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    height: auto !important;
    transition: all 0.2s ease !important;
}

body.nm-dashboard-active .form-control:focus {
    border-color: #ee7838 !important;
    box-shadow: 0 0 0 3px rgba(238, 120, 56, 0.15) !important;
}

/* Custom Counters */
.nm-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 320px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.nm-counter-btn {
    transition: all 0.15s ease;
}

.nm-counter-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

.nm-counter-btn:active {
    transform: scale(0.95);
}

/* Submit bottom navigation alignment */
.add-new-listing-bottom-nav-wrap {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Premium Photo Guide Styling */
.nm-photo-guide {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 25px;
}

.nm-photo-guide-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.nm-photo-guide h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.nm-photo-guide ul {
    margin: 0;
    padding-left: 20px;
}

.nm-photo-guide li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Host Trust & Security Card */
.nm-host-trust-card {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 25px;
}

.nm-htc-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.nm-htc-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #166534;
    margin: 0 0 10px 0;
}

.nm-htc-body p {
    font-size: 13px;
    color: #14532d;
    margin-bottom: 8px;
    line-height: 1.45;
}

.nm-htc-body p:last-child {
    margin-bottom: 0;
}

/* Price note message */
.nm-price-note {
    background: #fef3c7;
    border-left: 4px solid #d97706;
    color: #78350f;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 15px;
    line-height: 1.4;
}

/* Responsive adjustment */
@media(max-width: 768px) {
    body.nm-dashboard-active #submit_property_form {
        margin: 15px auto !important;
    }

    body.nm-dashboard-active .dashboard-content-block-wrap {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }

    .nm-hero-title {
        font-size: 28px !important;
    }
    
    .nm-hero-desc {
        font-size: 14px !important;
    }

    .nm-whatsapp-announcement {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        padding: 15px !important;
    }

    .nm-wa-content {
        flex-direction: column !important;
        text-align: center !important;
    }

    .nm-wa-btn {
        justify-content: center !important;
        width: 100% !important;
    }

    .nm-rental-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nm-card-header {
        flex-direction: row;
        align-items: center;
    }
    
    .nm-card-illustration {
        width: 48px;
        height: 48px;
    }
}
