/* Motorros Get Quote Form Styling */
.quote-form-container {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffc326;
    box-shadow: 0 0 5px rgba(255, 195, 38, 0.3);
}

.btn-primary {
    background: #ffc326;
    color: #333;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ffb300;
    transform: translateY(-1px);
}

/* Track Shipment Form Styling */
.track-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Get Quote Page Layout Fix */
.page-id-2986 .section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
}

.page-id-2986 .section.padding_top_130 {
    padding-top: 10px !important;
}

.page-id-2986 .section.padding_bottom_120 {
    padding-bottom: 40px !important;
}

/* Additional fallbacks for section padding */
body.page-id-2986 section[class*="padding_top"] {
    padding-top: 10px !important;
}

body.page-id-2986 .fw-main-row {
    padding-top: 10px !important;
}

/* Contact Page Layout: Move contact form above map */
.fw-page-builder-content {
    display: flex;
    flex-direction: column;
}

.wrap-map {
    order: 2; /* Move map to second position */
}

.fw-main-row:has(.form-wrapper) {
    order: 1; /* Move contact form section to first position */
}

/* Alternative approach for browsers that don't support :has() */
body.page-id-226 .wrap-map {
    order: 2;
}

body.page-id-226 .fw-main-row {
    order: 1;
}

/* Override exact theme padding rules */
.section_padding_bottom_120 > [class*="container"] {
    padding-bottom: 40px !important;
}

.section_padding_top_130 > [class*="container"] {
    padding-top: 40px !important;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 15px;
    }
    
    /* Mobile padding adjustments for services page */
    .page-id-185 [class*="section_padding"] > [class*="container"] {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
}