/* Main Containers */
.cm-form-container,
.cm-profile-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Forms */
.cm-form {
    width: 100%;
}

.cm-form h2 {
    margin-bottom: 1.5em;
    text-align: center;
    color: #333;
}

.cm-form-field {
    margin-bottom: 1.5em;
}

.cm-form-field label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #555;
}

.cm-form-field input[type="text"],
.cm-form-field input[type="email"],
.cm-form-field input[type="password"],
.cm-form-field input[type="tel"],
.cm-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cm-form-field textarea {
    min-height: 100px;
}

.cm-form-field.cm-checkbox {
    display: flex;
    align-items: center;
}

.cm-form-field.cm-checkbox input {
    margin-right: 10px;
}

.cm-form-field.cm-checkbox label {
    margin-bottom: 0;
}

/* Plan Selector */
.cm-plan-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.cm-plan-option {
    flex: 1;
    min-width: 200px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.cm-plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.cm-plan-option label {
    display: block;
    padding: 15px;
    cursor: pointer;
    margin: 0;
    transition: all 0.3s ease;
}

.cm-plan-option label h3 {
    margin-top: 0;
    font-size: 18px;
}

.cm-plan-option input[type="radio"]:checked + label {
    background-color: #f0f7ff;
    border-color: #3498db;
}

.cm-plan-option:hover label {
    background-color: #f9f9f9;
}

/* Buttons */
.cm-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cm-button:hover {
    background-color: #2980b9;
}

.cm-button-secondary {
    background-color: #eee;
    color: #333;
}

.cm-button-secondary:hover {
    background-color: #ddd;
}

.cm-form-submit {
    margin-top: 2em;
    text-align: center;
}

.cm-form-links {
    margin-top: 1.5em;
    text-align: center;
}

.cm-form-links a {
    color: #3498db;
    text-decoration: none;
}

.cm-form-links a:hover {
    text-decoration: underline;
}

/* Messages */
.cm-success-message,
.cm-error-message {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cm-success-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.cm-error-message {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Profile Styles */
.cm-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

.cm-plan-badge {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
}

.cm-plan-free {
    background-color: #95a5a6;
}

.cm-plan-one_time {
    background-color: #2ecc71;
}

.cm-plan-subscription {
    background-color: #9b59b6;
}

.cm-profile-section {
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid #eee;
}

.cm-profile-section h3 {
    margin-bottom: 1em;
}

.cm-plan-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

.cm-plan-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal */
.cm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cm-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.cm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.cm-modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cm-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    height: 42px;
}

/* Checkbox Group for Music Genres */
.cm-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cm-checkbox-item {
    display: flex;
    align-items: center;
    min-width: 150px;
    margin-bottom: 10px;
}

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

.cm-checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Make sure these styles aren't being overridden */
.cm-other-genre-field.show {
    display: block !important;
}

.cm-other-genre-field.hide {
    display: none !important;
}

#cm_gender_identity option,
#cm_identify_as option {
    color: #000; /* Force text color to black */
    display: block; /* Ensure they are displayed */
    visibility: visible; /* Ensure they are visible */
    /* Add other necessary styles */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cm-plan-options {
        flex-direction: column;
    }
    
    .cm-plan-option {
        width: 100%;
    }
    
    .cm-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cm-plan-badge {
        margin-top: 1em;
    }
}