/* Multi User Registration Repeater Payment Form - Frontend Styles */

.murrpf-registration-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.murrpf-form-title {
    text-align: center;
    color: #1a365d;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin: -20px -20px 30px -20px;
}

.murrpf-students-container {
    margin-bottom: 30px;
}

.murrpf-student-section {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    background: #f8fafc;
    position: relative;
}

.murrpf-student-section:first-child {
    border-color: #4299e1;
    background: #ebf8ff;
}

.murrpf-student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.murrpf-student-header h3 {
    margin: 0;
    color: #1a365d;
    font-size: 20px;
    font-weight: bold;
}

.murrpf-remove-student {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.murrpf-remove-student:hover {
    background: #c53030;
}

.murrpf-field-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.murrpf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.murrpf-field-half {
    flex: 1;
    min-width: 250px;
}

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

.murrpf-field label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 14px;
}

.murrpf-field input,
.murrpf-field select,
.murrpf-field textarea {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.murrpf-field input:focus,
.murrpf-field select:focus,
.murrpf-field textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.murrpf-field input.murrpf-error,
.murrpf-field select.murrpf-error {
    border-color: #e53e3e;
    background-color: #fed7d7;
}

.murrpf-checkbox-group,
.murrpf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.murrpf-checkbox-group label,
.murrpf-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.murrpf-checkbox-group input,
.murrpf-radio-group input {
    margin-right: 8px;
    margin-bottom: 0;
}

.murrpf-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    background: white;
}

.murrpf-time-grid label {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: normal;
    margin-bottom: 0;
    padding: 4px;
    cursor: pointer;
}

.murrpf-time-grid input {
    margin-right: 6px;
    margin-bottom: 0;
}

.murrpf-student-controls {
    text-align: center;
    margin-bottom: 30px;
}

.murrpf-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.murrpf-btn-primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 15px 40px;
    font-size: 18px;
}

.murrpf-btn-primary:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.murrpf-btn-primary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.murrpf-btn-secondary {
    background: #48bb78;
    color: white;
}

.murrpf-btn-secondary:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.murrpf-btn-secondary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.murrpf-order-summary {
    background: #edf2f7;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.murrpf-order-summary h3 {
    margin: 0 0 20px 0;
    color: #1a365d;
    font-size: 20px;
    text-align: center;
}

.murrpf-order-summary-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.murrpf-product-info,
.murrpf-quantity-info,
.murrpf-total-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #cbd5e0;
}

.murrpf-total-info {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    color: #1a365d;
    padding-top: 15px;
    border-top: 2px solid #4299e1;
}

.murrpf-product-name,
.murrpf-quantity,
.murrpf-total {
    font-weight: bold;
}

.murrpf-product-price {
    color: #48bb78;
    font-weight: bold;
}

.murrpf-submit-container {
    text-align: center;
    margin-bottom: 20px;
}

.murrpf-messages {
    margin-top: 20px;
}

.murrpf-error-messages {
    background: #fed7d7;
    border: 2px solid #e53e3e;
    border-radius: 6px;
    padding: 20px;
    color: #742a2a;
}

.murrpf-error-messages h4 {
    margin: 0 0 15px 0;
    color: #742a2a;
}

.murrpf-error-messages ul {
    margin: 0;
    padding-left: 20px;
}

.murrpf-error-messages li {
    margin-bottom: 5px;
}

.murrpf-success-message {
    background: #c6f6d5;
    border: 2px solid #48bb78;
    border-radius: 6px;
    padding: 20px;
    color: #22543d;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .murrpf-registration-form-wrapper {
        margin: 10px;
        padding: 15px;
    }
    
    .murrpf-form-title {
        font-size: 24px;
        margin: -15px -15px 20px -15px;
        padding: 15px;
    }
    
    .murrpf-field-group {
        flex-direction: column;
        gap: 0;
    }
    
    .murrpf-field-half {
        min-width: auto;
    }
    
    .murrpf-student-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .murrpf-student-header h3 {
        font-size: 18px;
    }
    
    .murrpf-time-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .murrpf-order-summary-inner {
        gap: 10px;
    }
    
    .murrpf-btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .murrpf-student-section {
        padding: 15px;
    }
    
    .murrpf-time-grid {
        grid-template-columns: 1fr;
    }
    
    .murrpf-time-grid label {
        font-size: 11px;
    }
}