/* Gender Selection Styling */
.gender-selection-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.gender-option {
    flex: 1;
    position: relative;
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.gender-label {
    display: flex !important;
    flex-direction: row !important;
    /* Explicitly force row direction */
    flex-wrap: nowrap !important;
    /* Prevent wrapping */
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #999;
    font-size: 16px;
    margin: 0;
    padding: 0 15px;
    position: relative;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width calculation */
}

/* Hide any theme-generated radio dots/checks */
.gender-label::before,
.gender-label::after {
    display: none !important;
    content: none !important;
}

.gender-label:hover {
    border-color: #059669;
    background: #ecfdf5;
    color: #059669;
}

.gender-label i {
    margin: 0 !important;
    padding: 0 !important;
    padding-right: 8px !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.gender-label span {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    text-align: left;
    flex: 0 1 auto;
}

.gender-label.male i,
.gender-label.female i {
    color: #999;
}

/* Selected States - Unified Green */
.gender-option input[type="radio"]:checked+.gender-label {
    border-color: #059669;
    border-width: 2px;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.1);
    background: #ecfdf5;
    color: #059669;
}

.gender-option input[type="radio"]:checked+.gender-label.male,
.gender-option input[type="radio"]:checked+.gender-label.female {
    border-color: #059669;
    color: #059669;
    background: #ecfdf5;
}

.gender-label:hover i,
.gender-option input[type="radio"]:checked+.gender-label i {
    color: #059669;
    transform: scale(1.1);
}

.gender-label i {
    transition: all 0.3s ease;
}

.gender-option input[type="radio"]:checked+.gender-label i {
    transform: scale(1.1);
}