/*==============================================
   XCC Registration Form Styles
================================================*/
.xcc-registration-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    /* Inherits from Divi */
    color: #444;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

.xcc-header h2 {
    color: #555;
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 600;
}

.xcc-divider {
    border: 0;
    height: 2px;
    background: #d32f2f;
    /* Red from the reference */
    margin: 15px 0 30px 0;
}

/* Progress Bar */
.xcc-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.step-indicator {
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: #888;
    position: relative;
    padding: 5px;
    transition: 0.3s;
}

.step-indicator.active {
    color: #d32f2f;
}

/* Steps */
.xcc-step {
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.xcc-step h3 {
    color: #555;
    margin-bottom: 20px;
    font-size: 22px;
}

/* Form Groups Layout */
.form-group.row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-group.row>label {
    flex: 0 0 35%;
    font-weight: 600;
    padding-right: 20px;
    padding-top: 10px;
}

.form-group.row>input[type="text"],
.form-group.row>input[type="email"],
.form-group.row>input[type="date"],
.form-group.row>div,
.form-group.row>.options-list {
    flex: 1;
}

/* Inputs */
.xcc-registration-wrapper input[type="text"],
.xcc-registration-wrapper input[type="email"],
.xcc-registration-wrapper input[type="date"],
.xcc-registration-wrapper textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    background-color: #f0f4ff;
    /* Light blue from reference */
    border-radius: 4px;
    font-size: 16px;
    transition: 0.3s;
}

.xcc-registration-wrapper input:focus,
.xcc-registration-wrapper textarea:focus {
    border-color: #a0b4ff;
    outline: none;
    box-shadow: 0 0 5px rgba(160, 180, 255, 0.5);
}

.xcc-registration-wrapper small {
    display: block;
    color: #777;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.4;
}

/* Radio Buttons & Checkboxes */
.options-list label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.options-list.list-vertical label {
    display: flex;
    margin-right: 0;
}

.options-list input[type="radio"] {
    margin-right: 8px;
    accent-color: #d32f2f;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 4px;
    accent-color: #d32f2f;
}

/* Legal Box */
.legal-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    resize: none !important;
}

/* Hidden conditional fields */
.xcc-hidden-field {
    display: none;
    margin-top: 10px;
}

/* Error states */
.xcc-error-field {
    border: 1px solid red !important;
    background-color: #ffeeee !important;
}

/* Form Actions */
.xcc-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-xcc {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    /* Redondeado ajustado para Recurrente style */
    cursor: pointer;
    transition: 0.3s;
}

.btn-xcc.primary {
    background-color: #b31b1b;
    /* Rojo más oscuro estilo Recurrente */
    color: #fff;
}

.btn-xcc.primary:hover {
    background-color: #8a1313;
}

.btn-xcc.secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-xcc.secondary:hover {
    background-color: #ccc;
}

/* Payment Step 4 Layout */
.xcc-payment-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.xcc-payment-sidebar {
    flex: 1 1 300px;
    background: #fff;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.xcc-payment-main {
    flex: 2 1 400px;
}

.xcc-payment-methods {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.payment-method-item {
    border-bottom: 1px solid #eee;
}

.payment-method-item:last-child {
    border-bottom: none;
}

.payment-method-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    margin: 0 !important;
}

.payment-method-header:hover {
    background: #fdfdfd;
}

.payment-method-item.active .payment-method-header {
    background: #fafafa;
}

.payment-method-header input[type="radio"] {
    margin-right: 15px;
    accent-color: #333;
}

.method-title {
    font-weight: bold;
    color: #444;
    flex-grow: 1;
}

.payment-method-body {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.cuotas-btn {
    flex: 1;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    cursor: pointer;
    font-weight: bold;
}

.cuotas-btn.active {
    border-color: #b31b1b;
    color: #b31b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .form-group.row {
        flex-direction: column;
    }

    .form-group.row>label {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }

    .xcc-progress-bar {
        font-size: 12px;
        padding: 10px 5px;
    }

    .xcc-payment-sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
    }
}