/**
 * Membership Form Styles
 */

.ycc-membership-form {
    max-width: 800px;
}

.ycc-form-section {
    border: 1px solid #e0ddd7;
    border-radius: var(--ycc-radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    background: var(--ycc-white);
}

.ycc-form-section legend {
    font-family: var(--ycc-font-heading);
    font-size: 1.2rem;
    color: var(--ycc-navy);
    padding: 0 0.5rem;
    font-weight: 700;
}

.ycc-form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ycc-form-field {
    flex: 1;
}

.ycc-field-small {
    flex: 0 0 150px;
}

.ycc-field-full {
    flex: 1 1 100%;
}

.ycc-form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--ycc-dark);
}

.ycc-form-field input[type="text"],
.ycc-form-field input[type="email"],
.ycc-form-field input[type="tel"],
.ycc-form-field input[type="date"],
.ycc-form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: var(--ycc-radius);
    font-family: var(--ycc-font-body);
    font-size: 1rem;
    transition: border-color var(--ycc-transition), box-shadow var(--ycc-transition);
    background: var(--ycc-white);
}

.ycc-form-field input:focus,
.ycc-form-field select:focus {
    outline: none;
    border-color: var(--ycc-navy);
    box-shadow: 0 0 0 3px rgba(158, 80, 40, 0.1);
}

.ycc-form-field input.invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.required {
    color: #c0392b;
}

/* Checkbox and radio labels */
.ycc-checkbox-label,
.ycc-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.ycc-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

/* Membership category options */
.ycc-membership-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.ycc-membership-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border: 2px solid #e0ddd7;
    border-radius: var(--ycc-radius);
    cursor: pointer;
    transition: all var(--ycc-transition);
}

.ycc-membership-option:hover {
    border-color: var(--ycc-gold);
    background: rgba(212, 182, 106, 0.05);
}

.ycc-membership-option:has(input:checked) {
    border-color: var(--ycc-navy);
    background: rgba(158, 80, 40, 0.05);
}

.ycc-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.ycc-option-name {
    font-weight: 600;
}

.ycc-option-price {
    font-family: var(--ycc-font-accent);
    font-weight: 700;
    color: var(--ycc-navy);
}

.ycc-selected-price {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--ycc-light-grey);
    border-radius: var(--ycc-radius);
    font-size: 1.1rem;
}

/* Declaration section */
.ycc-declaration {
    background: var(--ycc-light-grey);
}

.ycc-declaration p {
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--ycc-grey);
}

/* Submit button */
.ycc-form-actions {
    margin-top: 1rem;
}

.ycc-submit-btn {
    font-size: 1.1rem;
    padding: 14px 48px;
}

.ycc-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.ycc-form-success {
    padding: 2rem;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: var(--ycc-radius);
    margin-bottom: 2rem;
}

.ycc-form-success h3 {
    color: #2e7d32;
    margin-top: 0;
}

.ycc-form-errors {
    padding: 1.5rem;
    background: #fdecea;
    border: 1px solid #c0392b;
    border-radius: var(--ycc-radius);
    margin-bottom: 2rem;
}

.ycc-form-errors strong {
    color: #c0392b;
}

.ycc-form-errors ul {
    margin: 0.5rem 0 0 1.2rem;
}

/* Benefits and Rewards */
.ycc-membership-benefits,
.ycc-rewards-info {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--ycc-light-grey);
    border-radius: var(--ycc-radius);
}

.ycc-membership-benefits h3,
.ycc-rewards-info h3 {
    margin-top: 0;
}

.ycc-membership-benefits ul,
.ycc-rewards-info ul {
    columns: 2;
    column-gap: 2rem;
}

.ycc-membership-benefits li,
.ycc-rewards-info li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

/* Responsive */
@media (max-width: 768px) {
    .ycc-form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .ycc-field-small {
        flex: 1;
    }

    .ycc-form-section {
        padding: 1rem 1.2rem;
    }

    .ycc-radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ycc-membership-options {
        grid-template-columns: 1fr;
    }

    .ycc-membership-benefits ul,
    .ycc-rewards-info ul {
        columns: 1;
    }
}
