/* Existing Styles */

/* Container for the entire form */
.cmf-form-container {
    max-width: 700px;
    margin: 50px auto; /* Centers the form vertically with top and bottom margins */
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Rounded borders */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center-aligns the content within the container */
}

/* Individual form steps */
.cmf-form-step {
    margin-bottom: 20px;
}

/* Heading for each step */
.cmf-form-step h3 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 25px;
    text-align: center;
}

/* Labels for input fields */
.cmf-form-step label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #555555;
    font-size: 16px;
    text-align: left;
}

/* Input fields and textarea */
.cmf-form-step input,
.cmf-form-step textarea {
    /* width: 100%; */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

/* Specific styles for textarea */
.cmf-form-step textarea {
    height: 150px; /* Adjust height as needed */
    resize: vertical; /* Allows users to resize vertically */
}

/* Placeholder text styling */
.cmf-form-step textarea::placeholder {
    color: #999999;
    font-style: italic;
}

/* Focus styles for textarea */
.cmf-form-step textarea:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}

/* Response messages */
#cmf-form-response {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#cmf-form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#cmf-form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* New Styles for Radio Buttons */

/* Container for the radio button group */
.cmf-radio-group {
    margin: 20px 0;
    text-align: left; /* Align text to the left for better readability */
}

/* Paragraph above radio buttons */
.cmf-radio-group p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #555555;
    font-size: 16px;
}

/* Labels for radio buttons */
.cmf-radio-group label {
    display: inline-flex; /* Use inline-flex to align items horizontally */
    align-items: center; /* Vertically center the radio button and label text */
    margin-right: 20px; /* Space between radio buttons */
    cursor: pointer; /* Change cursor to pointer on hover */
    font-size: 16px;
    color: #555555;
}

/* Radio input fields */
.cmf-radio-group input[type="radio"] {
    margin-right: 8px; /* Space between radio button and label text */
    transform: scale(1.1); /* Slightly enlarge the radio buttons for better visibility */
    cursor: pointer;
}

/* Hover effect for radio labels */
.cmf-radio-group label:hover {
    color: #000000; /* Change text color on hover for better interactivity */
}

/* Error styling for radio buttons */
.cmf-radio-group.error label {
    color: #e74c3c; /* Red color for error indication */
}

.cmf-radio-group.error input[type="radio"] {
    outline: 2px solid #e74c3c; /* Red outline around radio buttons */
    border-radius: 50%;
}

/* New Styles for Hashtags Input and Checkbox */

/* Container for hashtags and checkbox */
.cmf-hashtags-container {
    margin-bottom: 20px;
    text-align: left; /* Align text to the left for consistency */
}

/* Container for hashtags input and checkbox */
.cmf-hashtags-input {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between input and checkbox */
}

/* Hashtags input field */
.cmf-hashtags-input input[type="text"] {
    flex: 1; /* Make the input take up available space */
    max-width: 70%; /* Adjust the max-width as needed to make it smaller */
    padding: 10px;
    font-size: 14px;
}

/* Character Counter */
#cmf-hashtags-counter {
    font-size: 12px;
    color: #999999;
    margin-left: 10px;
}

/* Checkbox label */
.cmf-checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
    color: #555555;
}

/* Checkbox input */
.cmf-checkbox-label input[type="checkbox"] {
    margin-right: 5px;
    transform: scale(1.2); /* Slightly enlarge the checkbox for better visibility */
}

/* Hover effect for checkbox label */
.cmf-checkbox-label:hover {
    color: #000000;
}

/* Inline Error Messages */
.error-message {
    display: none; /* Hidden by default */
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 10px;
}

/* New Styles for Step 2 Radio Buttons */
.cmf-step2-radio-group {
    margin: 20px 0;
    text-align: left;
}

.cmf-step2-radio-group p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #555555;
    font-size: 16px;
}

.cmf-step2-radio-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
    font-size: 14px;
    color: #555555;
}

.cmf-step2-radio-group input[type="radio"] {
    margin-right: 6px;
    transform: scale(1.0);
    cursor: pointer;
}

.cmf-step2-radio-group label:hover {
    color: #000000;
}

.cmf-step2-radio-group.error label {
    color: #e74c3c;
}

.cmf-step2-radio-group.error input[type="radio"] {
    outline: 2px solid #e74c3c;
    border-radius: 50%;
}

/* Responsive adjustments for radio buttons */
@media (max-width: 480px) {
    .cmf-radio-group label,
    .cmf-step2-radio-group label {
        display: block; /* Stack radio buttons vertically on small screens */
        margin-right: 0;
        margin-bottom: 10px;
    }

    .cmf-radio-group input[type="radio"],
    .cmf-step2-radio-group input[type="radio"] {
        margin-right: 5px;
    }

    .cmf-hashtags-input {
        flex-direction: column; /* Stack input and checkbox vertically */
        align-items: flex-start;
    }

    .cmf-hashtags-input input[type="text"] {
        max-width: 100%; /* Make input full width on small screens */
    }
}

/* Character Counter (Optional) */
#cmf-hashtags-counter {
    font-size: 12px;
    color: #999999;
    margin-left: 10px;
}

/* Dropdown Container Styling */
.cmf-dropdown-container {
    margin-bottom: 20px;
    text-align: left;
}

.cmf-dropdown-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555555;
    font-size: 16px;
}

.cmf-dropdown-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}