/* General Settings */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #2F2F2F;
    color: #fff;
}

/* Form Container */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

/* General Form Fields */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #2F2F2F;
    color: #ffffff;
    outline: none;
    appearance: none; /* Removes default browser dropdown styles */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 4 5%22%3E%3Cpath fill%3D%22%23ffffff%22 d%3D%22M2 0L0 2h4z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 8px 10px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff4c4c;
}

/* Floating Labels */
.form-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #bbbbbb;
    transition: all 0.2s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.9rem;
    color: #ffffff;
}

/* Country Code and Phone Number Fields */
.form-group-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.form-group-row .form-group {
    flex: 1;
    position: relative;
}

.form-group-row select,
.form-group-row input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #2F2F2F;
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.form-group-row select:focus,
.form-group-row input:focus {
    border-color: #ff4c4c;
}

.form-group-row label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #bbbbbb;
    transition: all 0.2s ease;
}

/* Topics of Interest Section */
.multi-select-container {
    margin-top: 15px;
}

.multi-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    border: 1px solid #555;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}

/* General Checkbox Styling */
.multi-select input[type="checkbox"] {
    accent-color: #ff4c4c; /* Customizes the checkbox tick color */
    width: 18px;
    height: 18px;
    margin-right: 8px; /* Adds space between the box and the label text */
    cursor: pointer; /* Indicates clickable */
}

.multi-select label {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between checkbox and text */
    font-size: 0.9rem;
    color: #ffffff;
    cursor: pointer;
}

.multi-select label:hover {
    color: #ff6666; /* Optional: Highlight text on hover */
}


.multi-select input[type="checkbox"] {
    accent-color: #ff4c4c;
    width: 18px;
    height: 18px;
}

/* Helper Text for Multi-Select Section */
.multi-select-container small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #bbbbbb;
    text-align: left;
}

/* Submit Button */
.form-container button {
    margin-top: 15px;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ff4c4c, #ff6666);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.form-container button:hover {
    background: linear-gradient(90deg, #e63939, #ff4c4c);
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-group-row {
        flex-direction: column;
        gap: 10px;
    }

    .multi-select {
        grid-template-columns: 1fr;
    }
}

/* Placeholder Styling */
::placeholder {
    color: #bbbbbb;
    font-style: italic;
}


/* Ensure the newsletter checkbox appears as a checkbox */
.newsletter input[type="checkbox"] {
    appearance: checkbox; /* Resets any dropdown-like appearance */
    accent-color: #ff4c4c; /* Matches the Topics of Interest checkbox color */
    width: 18px;
    height: 18px;
    margin-right: 10px; /* Adds spacing between checkbox and label */
    cursor: pointer;
    border: none;
    outline: none;
}

/* Newsletter label styling */
.newsletter label {
    font-size: 1.1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px; /* Spacing between the checkbox and label text */
    cursor: pointer;
}


.newsletter label:hover {
    color: #ff6666; /* Optional: Highlight text on hover */
}


