/* Contact Section Styles */
.contact-section {
    padding: 60px 40px;
    /* Background now handled by body */
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box; /* Include padding in width */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.checkbox-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.checkbox-group > label {
    margin-right: 20px;
    margin-bottom: 10px; /* For wrapping */
    font-weight: bold;
    color: #555;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px; /* For wrapping */
}

.checkbox-option input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2); /* Slightly larger checkboxes */
}

/* Toggle Switch Styles */
.toggle-switch-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    justify-content: space-between; /* Push toggle to the right */
    flex-wrap: wrap;
}

.toggle-switch-group label:first-child {
    font-weight: bold;
    color: #555;
    margin-right: 20px; /* Restore original margin */
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px; /* Reduced width */
    height: 24px; /* Reduced height */
    margin-bottom: 10px; /* For wrapping */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; /* Reduced circle size */
    width: 18px;
    left: 3px; /* Adjusted position */
    bottom: 3px; /* Adjusted position */
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #5A3E36; /* Dark brown when checked */
}

input:focus + .slider {
    box-shadow: 0 0 1px #5A3E36;
}

input:checked + .slider:before {
    transform: translateX(16px); /* Adjusted transform for smaller size */
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.submit-button {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    background-color: #5A3E36; /* Dark brown */
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.submit-button:hover {
    background-color: #8B4513; /* Lighter brown on hover */
    box-shadow: 0 0 10px rgba(90, 62, 54, 0.5);
}

/* Responsive styles for Contact section */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
    }

    .contact-section h2 {
        font-size: 2rem; /* Adjusted font size for tablets */
    }

    .contact-form {
        padding: 30px;
    }

    .form-group label, .checkbox-group > label, .toggle-switch-group label:first-child, .checkbox-option label {
        font-size: 0.95rem; /* Adjusted font size for labels */
    }

    .form-group input, .form-group textarea, .submit-button {
        font-size: 0.95rem; /* Adjusted font size for inputs and button */
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkbox-group > label {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .toggle-switch-group {
        flex-direction: column; /* Stack label and toggle vertically on small screens */
        align-items: flex-start;
    }

    .toggle-switch-group label:first-child {
        margin-right: 0;
        margin-bottom: 15px; /* Add margin when stacked */
    }

    .checkbox-option {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 20px 15px; /* Adjusted padding for mobile */
    }
    .contact-section h2 {
        font-size: 1.8rem; /* Adjusted font size for mobile */
    }
    .contact-form {
        padding: 20px; /* Adjusted padding for mobile */
    }
    .form-group label, .checkbox-group > label, .toggle-switch-group label:first-child, .checkbox-option label {
        font-size: 0.9rem; /* Smaller font size for labels */
    }
    .form-group input, .form-group textarea, .submit-button {
        font-size: 0.9rem; /* Smaller font size for inputs and button */
        padding: 10px; /* Smaller padding for inputs and button */
    }
    .switch {
        width: 40px; /* Even smaller switch width for mobile */
        height: 24px; /* Even smaller switch height for mobile */
    }
    .slider:before {
        height: 18px; /* Even smaller slider circle */
        width: 18px;
        left: 3px;
        bottom: 3px;
    }
    input:checked + .slider:before {
        transform: translateX(16px); /* Adjust transform for smaller switch */
    }
}
