/* Updated styles.css to fix background and logo-text spacing */

/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-y: auto;
}

h1, p, label {
    color: rgba(33, 33, 33);
}

/* Container for content */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Logo and Logo-Text Styling */
.logo-text, .logo {
    display: block;
    max-width: 80%;
    width: 300px;
    height: auto;
    margin: 10px auto;
    object-fit: contain;
}

.logo {
    width: 150px; /* Smaller size for the emblem */
}

/* Form container specific styling */
#subscribe-form {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
    }
    
    .logo-text {
        width: 250px;
    }
    
    .logo {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 10px auto;
    }
    
    .logo-text {
        width: 200px;
    }
    
    .logo {
        width: 100px;
    }
}

/* Dropdown Styling */
.dropdown-select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px auto;
}

.dropdown-select:hover {
    border-color: #999;
}

.dropdown-select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.dropdown-select option {
    padding: 10px;
}

/* Ensure dropdowns are responsive */
@media (max-width: 480px) {
    .dropdown-select {
        max-width: 100%;
        font-size: 14px;
    }
}

/* Form Styling */
#subscribe-form input[type="text"],
#subscribe-form input[type="email"],
#subscribe-form .dropdown-select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Checkbox container styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 8px 0;
    text-align: left;
}

#subscribe-form input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

#subscribe-form label {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin-left: 8px;
}

#subscribe-form button {
    background-color: #4a90e2;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.3s ease;
}

#subscribe-form button:hover {
    background-color: #357abd;
}

/* Update existing dropdown styles */
.dropdown-select {
    margin: 8px 0 !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #subscribe-form {
        padding: 15px;
        margin: 10px;
    }

    #subscribe-form input[type="text"],
    #subscribe-form input[type="email"],
    #subscribe-form .dropdown-select {
        padding: 10px;
        font-size: 14px;
    }

    #subscribe-form label {
        font-size: 13px;
    }

    #subscribe-form button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.services-group {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0;
}

.services-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.services-group .checkbox-group {
    margin: 4px 0;
}

.services-group .checkbox-group:last-child {
    margin-bottom: 0;
}

/* Multi-select Dropdown Styling */
.multiselect-dropdown {
    position: relative;
    width: 100%;
    margin: 8px 0;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
}

.dropdown-toggle:hover {
    border-color: #999;
}

.dropdown-toggle:after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.multiselect-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item input[type="checkbox"] {
    margin-right: 8px;
}

.dropdown-item label {
    margin: 0;
    cursor: pointer;
}
