/* Custom styles for consistent listing card sizes */

/* Fix image container height - this ensures all images are the same size */
.geodir-category-img {
    height: 250px !important;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 250px;
}

.geodir-category-img_item {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Ensure images fill the container and maintain aspect ratio */
.geodir-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geodir-category-img {
        height: 200px !important;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .geodir-category-img {
        height: 180px !important;
        min-height: 180px;
    }
}

/* ============================================
   Enhanced Color Scheme - Less White Background
   ============================================ */

/* Body and main background - subtle gray instead of pure white */
body {
    background-color: #f5f7fa !important;
    color: #2d3748;
}

/* Header logout shortcut placed near language icon */
.header-logout-link {
    padding: 0 18px !important;
}

.header-logout-link i {
    color: #ef4444 !important;
}

.header-logout-link:hover i,
.header-logout-link:hover span {
    color: #dc2626 !important;
}

#main {
    background-color: #f5f7fa;
}

/* Gray sections - make them slightly darker */
section.gray-bg {
    background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%) !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Remove "scroll down to discover" widget everywhere */
.scroll-down-wrap {
    display: none !important;
}

/* Listing cards - add shadow and subtle background */
.listing-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e8ecf1;
}

.listing-item:hover {
    box-shadow: 0 10px 20px rgba(50, 112, 252, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.geodir-category-listing {
    background: #ffffff;
}

.geodir-category-content {
    background: #ffffff;
    padding: 20px;
}

/* Header improvements */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e8ecf1;
}

/* Footer - darker background */
.main-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    color: #e2e8f0;
    border-top: 3px solid #3270FC;
}

.main-footer .footer-widget p,
.main-footer .footer-widget-title h4 {
    color: #e2e8f0;
}

.main-footer .footer-list li a,
.main-footer .footer-contacts li a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.main-footer .footer-list li a:hover,
.main-footer .footer-contacts li a:hover {
    color: #3270FC;
}

.sub-footer {
    background: #1a202c !important;
    border-top: 1px solid #2d3748;
}

.sub-footer .copyright,
.sub-footer .subfooter-nav a {
    color: #a0aec0;
}

/* Modern footer refresh */
.modern-footer {
    background:
        radial-gradient(1200px 420px at 15% -10%, rgba(99, 102, 241, 0.22), transparent 60%),
        radial-gradient(900px 380px at 90% 0%, rgba(59, 130, 246, 0.18), transparent 65%),
        linear-gradient(135deg, #0f172a 0%, #111827 55%, #1e293b 100%) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.modern-footer-inner {
    padding-top: 72px;
    padding-bottom: 42px;
}

.modern-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 0;
}

.modern-footer-col {
    display: flex;
}

.modern-footer-card {
    width: 100%;
    padding: 20px 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: 0 10px 30px rgba(2, 8, 23, 0.35);
    backdrop-filter: blur(3px);
}

.modern-footer .footer-widget-title h4 {
    color: #f8fafc !important;
    font-size: 16px;
    letter-spacing: 0.2px;
}

.modern-footer .footer-list li a,
.modern-footer .footer-contacts li a {
    color: #dbeafe !important;
}

.modern-footer .footer-list li a:hover,
.modern-footer .footer-contacts li a:hover {
    color: #93c5fd !important;
}

.modern-footer .footer-contacts li span {
    color: #cbd5e1 !important;
}

.modern-footer .footer-widget-logo img {
    height: 130px;
}

.modern-footer-tagline {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
    max-width: 240px;
}

.modern-footer .footer-social li a {
    border-radius: 10px;
    border: 1px solid rgba(147, 197, 253, 0.35);
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe !important;
}

.modern-footer .footer-social li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.modern-sub-footer {
    background: rgba(2, 6, 23, 0.85) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.modern-sub-footer .copyright {
    font-size: 11px;
    color: #94a3b8 !important;
}

.modern-sub-footer .subfooter-nav a {
    color: #cbd5e1 !important;
}

/* Sidebar logo under admin menu */
.sidebar-brand-logo-wrap {
    padding: 8px 16px 4px;
    text-align: center;
}

.sidebar-brand-logo-link {
    display: inline-block;
    border-radius: 14px;
    padding: 4px 6px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.sidebar-brand-logo {
    display: block;
    width: 74px;
    max-width: 100%;
    height: auto;
}

/* Breadcrumbs - subtle background */
.breadcrumbs {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border-bottom: 1px solid #e8ecf1;
}

/* Search sidebar - card style */
.search-sb,
.block-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf1;
    padding: 25px;
}

/* Listings filters: cleaner spacing and less crowded layout */
#filters-column.search-sb {
    padding: 20px 22px 16px;
    border-radius: 16px;
}

#filters-column .listsearch-input-item {
    margin-bottom: 16px;
}

#filters-column .listsearch-input-item label {
    margin-bottom: 8px;
    font-size: 16px;
}

#filters-column .price-rage-item .row,
#filters-column .listsearch-input-item .row {
    margin-left: -6px;
    margin-right: -6px;
}

#filters-column .price-rage-item [class*='col-'],
#filters-column .listsearch-input-item [class*='col-'] {
    padding-left: 6px;
    padding-right: 6px;
}

#filters-column .listing-filter-number {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    border: 1px solid #d7deea;
    border-radius: 8px;
    background: #fff;
}

#filters-column .listing-filter-number:focus {
    border-color: #5d64f5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(93, 100, 245, 0.14);
}

#filters-column .msotw_footer {
    margin-top: 18px;
    padding-top: 4px;
    display: flex;
    align-items: center;
    gap: 14px;
}

#filters-column .msotw_footer .btn {
    min-width: 132px;
    height: 48px;
    border-radius: 9px;
    font-size: 16px;
}

#filters-column .msotw_footer .reset-form {
    margin-top: 0;
    font-size: 15px;
}

.back-tofilters {
    margin-top: 14px;
    border-radius: 10px;
}

@media (max-width: 767px) {
    #filters-column.search-sb {
        padding: 16px 14px 12px;
        border-radius: 12px;
    }
}

/* Form inputs - better styling */
.custom-form input[type="text"],
.custom-form input[type="number"],
.custom-form select {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-form input[type="text"]:focus,
.custom-form input[type="number"]:focus,
.custom-form select:focus {
    border-color: #3270FC;
    box-shadow: 0 0 0 3px rgba(50, 112, 252, 0.1);
}

/* Buttons - enhanced styling */
.btn,
.log_btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(50, 112, 252, 0.2);
}

.btn:hover,
.log_btn:hover {
    box-shadow: 0 4px 12px rgba(50, 112, 252, 0.3);
    transform: translateY(-1px);
}

/* Cards and widgets */
.geodir-category-content {
    background: #ffffff;
}

/* Hero section overlay - slightly darker */
.hero-section .overlay {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.6) 0%, rgba(45, 55, 72, 0.5) 100%);
}

/* Subscribe section - enhanced */
.subscribe-wrap {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #ede9fe 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.subscribe-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, #3270FC 0%, #3C6AFD 50%, #57C7FA 100%);
    z-index: 0;
}

.subscribe-container {
    background: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px !important;
    padding: 50px 60px !important;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.subscribe-header {
    text-align: left;
    position: relative;
    top: 0;
    padding-right: 20px;
}

.subscribe-header h4 {
    color: #878C9F !important;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.subscribe-header h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    line-height: 1.3;
    margin: 0;
}

.subscribe-widget {
    display: flex;
    align-items: center;
    height: 100%;
}

.subcribe-form {
    position: relative;
    width: 100%;
    display: flex;
    gap: 0;
}

#subscribe {
    display: flex;
    width: 100%;
    position: relative;
}

#subscribe .enteremail {
    background: #f8fafc !important;
    height: 56px !important;
    line-height: 56px !important;
    border-radius: 12px 0 0 12px !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    border: 2px solid #e8ecf1 !important;
    flex: 1;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
}

#subscribe .enteremail:focus {
    outline: none;
    border-color: #3270FC !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(50, 112, 252, 0.1);
}

#subscribe .enteremail::-webkit-input-placeholder,
#subscribe .enteremail::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    font-family: 'Jost', sans-serif;
}

#subscribe-button {
    position: relative !important;
    right: auto !important;
    width: auto !important;
    height: 56px !important;
    line-height: 56px !important;
    font-weight: 600 !important;
    top: auto !important;
    cursor: pointer;
    border: none !important;
    border-radius: 0 12px 12px 0 !important;
    z-index: 2;
    color: #fff !important;
    font-family: 'Jost', sans-serif;
    padding: 0 30px !important;
    font-size: 14px;
    background: linear-gradient(135deg, #3270FC 0%, #3C6AFD 100%) !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(50, 112, 252, 0.3);
}

#subscribe-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3270FC 100%) !important;
    box-shadow: 0 6px 16px rgba(50, 112, 252, 0.4);
    transform: translateY(-1px);
}

.subscribe-message {
    position: absolute;
    bottom: -25px;
    left: 0;
    font-size: 12px;
    color: #3270FC;
    font-weight: 500;
}

/* Responsive adjustments for subscribe section */
@media (max-width: 768px) {
    .subscribe-container {
        padding: 40px 30px !important;
    }
    
    .subscribe-header h3 {
        font-size: 24px !important;
    }
    
    .subscribe-header {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .subcribe-form {
        flex-direction: column;
    }
    
    #subscribe .enteremail {
        border-radius: 12px !important;
        margin-bottom: 12px;
    }
    
    #subscribe-button {
        border-radius: 12px !important;
        width: 100% !important;
    }
    
    .subscribe-wrap {
        padding: 60px 0;
    }
}

/* Dashboard improvements */
.dashboard-content {
    background: #f5f7fa;
}

.dasboard-wrapper {
    background: transparent;
}

/* Flash messages - better styling */
.flash-messages .alert {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.alert-success {
    background: #f0fdf4;
    border-left-color: #40B69E;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-left-color: #EF8C9B;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border-left-color: #3270FC;
    color: #1e40af;
}

/* Listing filters */
.listing-filters a {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.listing-filters a:hover {
    background: #f8fafc;
    border-color: #3270FC;
}

.listing-filters a.gallery-filter-active {
    background: #3270FC;
    color: #ffffff;
    border-color: #3270FC;
}

/* Grid items */
.gallery-item {
    margin-bottom: 30px;
}

/* Section titles */
.section-title h2 {
    color: #1a202c;
}

.section-title h4 {
    color: #3270FC;
}

/* Price display */
.geodir-category-content_price {
    color: #3270FC;
    font-weight: 700;
    font-size: 1.3em;
}

/* Category badges */
.cat-opt {
    border-radius: 6px;
    font-weight: 600;
    padding: 6px 12px;
}

/* Pagination */
.pagination a {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #f8fafc;
    border-color: #3270FC;
}

.pagination a.current-page {
    background: #3270FC;
    color: #ffffff;
    border-color: #3270FC;
}

/* Search input wrapper */
.main-search-input {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header search wrapper */
.header-search-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #3270FC;
}

/* Modal improvements */
.main-register-wrap {
    background: rgba(26, 32, 44, 0.8);
    backdrop-filter: blur(5px);
}

.main-register-holder {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* List main wrap */
.list-main-wrap-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
}

/* Dashboard improvements */
.dashbard-menu-wrap {
    background: #ffffff !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
    border-right: 1px solid #e8ecf1;
}

.dasboard-content {
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
}

.dasboard-widget-title {
    background: #faf5ff !important;
    border-bottom: 2px solid #e8ecf1;
}

.dashboard-title {
    border-bottom: 2px solid #e8ecf1;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.dashbard-menu-header {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
}

/* Dashboard widgets and cards */
.dasboard-wrapper .box-widget,
.dasboard-wrapper .dashboard-list {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
    margin-bottom: 20px;
}

.dashboard-stats {
    background: linear-gradient(135deg, #3270FC 0%, #3C6AFD 100%);
    border-radius: 12px;
    padding: 20px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(50, 112, 252, 0.3);
}

/* Table improvements */
.table-container,
.data-table {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
    overflow: hidden;
}

.data-table th {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #ffffff;
}

.data-table tr:hover {
    background: #f8fafc;
}

/* Stat cards */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(50, 112, 252, 0.15);
    transform: translateY(-2px);
}

/* Listing detail page */
.list-single-main-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
    overflow: hidden;
}

.list-single-main-media {
    background: #ffffff;
}

/* Box widgets */
.box-widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
}

/* Notification improvements */
.notification {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification.success-notif {
    background: linear-gradient(135deg, #40B69E 0%, #2d9d87 100%);
}

.notification.error-notif {
    background: linear-gradient(135deg, #EF8C9B 0%, #e57384 100%);
}

.notification.info-notif {
    background: linear-gradient(135deg, #3270FC 0%, #2563eb 100%);
}

/* Chart wrapper */
.chart-wrap {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
}

/* User profile menu */
.user-profile-menu {
    background: #ffffff;
}

.user-profile-menu li a {
    transition: all 0.3s ease;
}

.user-profile-menu li a:hover {
    background: #f8fafc;
    color: #3270FC;
}

/* Form improvements */
.custom-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
}

/* Block box */
.block-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
}

/* List single header */
.list-single-header-item {
    background: transparent;
    backdrop-filter: none;
    border-radius: 12px;
    box-shadow: none;
}

/* Gallery items */
.gallery-items {
    background: transparent;
}

/* Listing detail gallery: all images same visible size */
.list-single-gallery .gallery-item .box-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.list-single-gallery .gallery-item .box-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
}

/* Hero title improvements */
.hero-title h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Secondary nav */
.secondary-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e8ecf1;
}

/* Scroll nav */
.scroll-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8ecf1;
}

/* Fix for dropdown menu z-index issues */
.chosen-container {
    position: relative;
    z-index: 1000 !important;
}

.chosen-container-active {
    z-index: 1002 !important;
}

.chosen-container-active .chosen-drop {
    z-index: 1003 !important;
}

.chosen-drop {
    z-index: 1001 !important;
    position: absolute !important;
}

/* Ensure hero-notifer doesn't overlap with dropdowns */
.hero-notifer {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* Main search input items - ensure proper stacking */
.main-search-input-wrap {
    position: relative;
    z-index: 10;
}

.main-search-input {
    position: relative;
    z-index: 10;
}

.main-search-input-item {
    position: relative;
    z-index: auto;
}

.main-search-input-item .chosen-container {
    z-index: 1000 !important;
}

.main-search-input-item .chosen-container-active {
    z-index: 1002 !important;
}

.main-search-input-item .chosen-container-active .chosen-drop {
    z-index: 1003 !important;
}

/* Nice-select dropdown (alternative dropdown library) */
.nice-select {
    z-index: 1000;
}

.nice-select.open {
    z-index: 1001;
}

.nice-select .list {
    z-index: 1002 !important;
}

/* Header search wrapper dropdowns */
.header-search-wrapper .chosen-container,
.header-search-wrapper .nice-select {
    z-index: 1000 !important;
}

.header-search-wrapper .chosen-container-active,
.header-search-wrapper .nice-select.open {
    z-index: 1001 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .listing-item {
        margin-bottom: 20px;
    }
    
    section.gray-bg {
        padding: 30px 0;
    }
    
    .main-header {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .dashbard-menu-wrap {
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    }
    
    /* Mobile dropdown fixes */
    .chosen-container,
    .nice-select {
        z-index: 1000 !important;
    }
}

/* ============================================
   Contacts page: match Homeradar original look
   ============================================ */
.contacts-page {
    background: #F5F7FB !important;
}

/* Our global gray-bg override is a gradient; reset it on contacts page */
.contacts-page.gray-bg {
    background: #F5F7FB !important;
}

/* Add a bit more breathing room on the left */
.contacts-page .container {
    padding-left: 30px;
    padding-right: 30px;
}

/* Inline contact form (instead of modal) */
.contacts-page .contacts-inline-form-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.contacts-page .contacts-opt {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.contacts-page .contact-form-main {
    border-radius: 4px;
}

.contacts-page .contact-form-header {
    position: static;
    width: 100%;
    border: 1px solid #eee;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.contacts-page .contact-form-main {
    padding: 0;
    background: transparent;
    overflow: visible;
}

.contacts-page .contact-form {
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 20px 50px 20px;
}

/* Remove global custom-form "card" styling behind the contact card */
.contacts-page #contactform.custom-form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Additional subscribe section improvements */
.subscribe-container .pwh_bg,
.subscribe-container .mrb_dec,
.subscribe-container .mrb_dec3 {
    opacity: 0;
    pointer-events: none;
}

.subscribe-wrap:before {
    background: #faf5ff !important;
}

/* Ensure proper alignment */
.subscribe-header,
.subscribe-widget {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Better spacing */
.subscribe-container .row {
    align-items: center;
}
