/* Main Container */
.ma-registration-form {
    /* max-width: 800px; */
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(1, 63, 138, 0.08);
}

/* Typography */
.ma-registration-form h2 {
    margin: 0 0 24px 0;
    color: #013F8A;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.ma-registration-form h3 {
    margin: 32px 0 20px 0;
    color: #013F8A;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 2px solid #e8f1f8;
    padding-bottom: 12px;
}

.ma-registration-form p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
}

.included-in-day {
    color: #718096;
    font-size: 0.9em;
    font-style: italic;
}

.ma-day-price {
    float: right;
    color: #013F8A;
    font-size: 0.85em;
    font-weight: 600;
    background: #e8f1f8;
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 4px;
}

.ma-day-price-free {
    color: #0c8f2d;
    background: #e3fae8;
}

/* Form Layout */
.ma-registration-form form {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.ma-registration-form form.ma-form {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.ma-button-left form,
.ma-button-right form,
.ma-buttons-row form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.ma-form {
    margin-top: 24px;
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -12px;
    margin-right: -12px;
    width: 100%;
}

.ma-field {
    margin-bottom: 24px;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

.ma-field-width-100 {
    width: 100%;
}

.ma-field-width-50 {
    width: 50%;
}

.ma-field-width-33 {
    width: 33.333%;
}

/* Form Labels */
.ma-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

/* Form Inputs */
.ma-field input[type="email"],
.ma-field input[type="text"],
.ma-field input[type="tel"],
.ma-field input[type="number"],
.ma-field select,
.ma-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #2d3748;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.ma-field input[type="email"]:focus,
.ma-field input[type="text"]:focus,
.ma-field input[type="tel"]:focus,
.ma-field input[type="number"]:focus,
.ma-field select:focus,
.ma-field textarea:focus {
    outline: none;
    border-color: #013F8A;
    box-shadow: 0 0 0 3px rgba(1, 63, 138, 0.1);
}

.ma-field textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.ma-buttons-container {
    width: 100%;
    margin-top: 32px;
    clear: both;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

.ma-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 16px;
}

.ma-button-left,
.ma-button-right {
    display: flex;
    background: transparent !important;
    padding: 0 !important;
}

.ma-button-left form,
.ma-button-right form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

.ma-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 32px !important;
    background: #6c757d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

.ma-button:hover {
    background: #5a6268 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.ma-button:active {
    transform: translateY(0) !important;
}

.ma-button-primary {
    background: #013F8A !important;
    color: #ffffff !important;
}

.ma-button-primary:hover {
    background: #012d63 !important;
    color: #ffffff !important;
}

/* Alert Messages */
.ma-error,
.ma-validation-error {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 8px;
}

.ma-error p,
.ma-validation-error p {
    color: #c53030;
    margin: 0;
}

.ma-error strong,
.ma-validation-error strong {
    color: #9b2c2c;
}

.ma-success {
    background: #f0fff4;
    border-left: 4px solid #38a169;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 8px;
}

.ma-success h2 {
    color: #22543d;
    margin-top: 0;
}

.ma-success p {
    color: #276749;
    margin-bottom: 8px;
}

.ma-info {
    background: #ebf8ff;
    border-left: 4px solid #013F8A;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 8px;
}

.ma-info h2 {
    color: #013F8A;
    margin-top: 0;
}

.ma-info p {
    color: #2c5282;
    margin-bottom: 8px;
}

/* Info Boxes */
.ma-identity-info {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    border: 2px solid #e2e8f0;
}

.ma-identity-info p {
    margin: 8px 0;
    color: #2d3748;
}

.ma-identity-info strong {
    color: #013F8A;
}

.ma-info-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 8px;
}

.ma-info-box p {
    color: #92400e;
    margin-bottom: 8px;
}

.ma-info-box strong {
    color: #78350f;
}

.ma-info-box ul {
    margin: 12px 0 0 20px;
    color: #92400e;
}

/* Session Selection */
.ma-sessions-list {
    background: transparent;
    padding: 0;
    margin: 24px 0;
}

.ma-date-group {
    margin-bottom: 40px;
}

.ma-date-group:last-child {
    margin-bottom: 0;
}

.ma-date-group h4 {
    margin: 0 0 20px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    color: #013F8A;
    font-size: 18px;
    font-weight: 600;
}

.ma-session-option {
    margin-bottom: 16px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ma-session-option:hover {
    border-color: #013F8A;
    box-shadow: 0 2px 8px rgba(1, 63, 138, 0.1);
}

.ma-session-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.ma-session-option input[type="checkbox"] {
    margin-right: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #013F8A;
    flex-shrink: 0;
}

.ma-session-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.ma-session-info {
    flex: 1;
}

.ma-session-info strong {
    display: block;
}

.ma-session-info small {
    display: inline-block;
    color: #718096;
    padding-top: 8px;
}

.ma-session-price {
    margin-left: 16px;
    font-weight: 700;
    color: #013F8A;
    font-size: 14px;
    flex-shrink: 0;
}

.ma-session-price .not-available {
    color: #a0aec0;
}

.ma-session-price .free-price {
    color: #38a169;
}

/* Badges */
.ma-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
    margin-top: 8px;
}

.ma-badge-public {
    background: #dbeafe;
    color: #1e40af;
}

.ma-badge-jip {
    background: #d1fae5;
    color: #065f46;
}

.ma-badge-social {
    background: #fde68a;
    color: #854d0e;
}

/* Summary Table */
.ma-summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.ma-summary-table th,
.ma-summary-table td {
    padding: 16px;
    text-align: left;
}

.ma-summary-table thead th {
    background: #013F8A;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ma-summary-table tbody td {
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

.ma-summary-table tbody tr:last-child td {
    border-bottom: none;
}

.ma-summary-table tbody tr:hover {
    background: #f7fafc;
}

.ma-summary-table tfoot th {
    background: #f7fafc;
    font-weight: 700;
    font-size: 16px;
    color: #013F8A;
    border-top: 2px solid #013F8A;
}

.ma-summary-table small {
    color: #718096;
    font-size: 13px;
}

.ma-summary-table .free-price {
    color: #38a169;
}

/* Modal Styles */
.ma-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    box-sizing: border-box;
}

.ma-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.ma-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ma-modal-content h3 {
    margin: 0 0 16px 0;
    color: #f59e0b;
    font-size: 24px;
    font-weight: 700;
    border-bottom: 2px solid #fef3c7;
    padding-bottom: 12px;
}

.ma-modal-content p {
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ma-modal-content ul {
    margin: 12px 0 20px 20px;
    color: #2d3748;
}

.ma-modal-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.ma-modal-content strong {
    color: #013F8A;
}

.ma-modal-buttons {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.ma-modal-buttons .ma-button {
    min-width: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ma-registration-form {
        padding: 24px;
        margin: 20px 16px;
    }
    
    .ma-registration-form h2 {
        font-size: 26px;
    }
    
    .ma-registration-form h3 {
        font-size: 20px;
    }
    
    .ma-field-width-50,
    .ma-field-width-33 {
        width: 100%;
    }
    
    .ma-buttons-row {
        flex-direction: row;
        gap: 12px;
    }
    
    .ma-button-left,
    .ma-button-right {
        flex: 1;
    }
    
    .ma-button {
        width: 100%;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    .ma-date-group {
        margin-bottom: 48px;
    }
    
    .ma-date-group h4 {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .ma-session-option {
        margin-bottom: 16px;
        padding: 16px 12px;
    }
    
    .ma-session-option label {
        flex-wrap: wrap;
    }
    
    .ma-session-info {
        line-height: 1.6;
    }
    
    .ma-session-info strong {
        display: block;
    }
    
    .ma-session-info small {
        display: block;
        padding-top: 4px;
        margin-bottom: 8px;
    }
    
    .ma-badge {
        display: inline-block;
        margin-left: 0;
        margin-right: 8px;
        margin-top: 12px;
    }
    
    .ma-session-price {
        margin-left: 36px;
        margin-top: 12px;
        width: 100%;
        font-size: 13px;
    }
    
    .ma-session-price .not-available {
        font-size: 11px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 80%;
        display: block;
    }
    
    .ma-day-price {
        display: block;
        float: none;
        margin-top: 8px;
        width: fit-content;
    }
    
    .ma-summary-table {
        font-size: 14px;
    }
    
    .ma-summary-table th,
    .ma-summary-table td {
        padding: 12px 8px;
    }
}
