/**
 * File: public/css/public.css
 * Frontend styles
 */

.erc-registration-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.erc-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.erc-form h3 {
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

.erc-form h3:first-of-type {
    margin-top: 0;
}

.erc-field-wrapper {
    margin-bottom: 20px;
}

.erc-half-width {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
}

.erc-half-width:nth-child(2n) {
    margin-right: 0;
}

.erc-field-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.erc-field-wrapper input[type="text"],
.erc-field-wrapper input[type="email"],
.erc-field-wrapper input[type="tel"],
.erc-field-wrapper input[type="number"],
.erc-field-wrapper input[type="date"],
.erc-field-wrapper select,
.erc-field-wrapper textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.erc-field-wrapper input:focus,
.erc-field-wrapper select:focus,
.erc-field-wrapper textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.erc-field-wrapper .required {
    color: #d63638;
}

.erc-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.erc-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.erc-capacity-status {
    background: #e7f3f8;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.erc-capacity-status p {
    margin: 0;
    font-size: 16px;
    color: #0073aa;
}

.erc-price-display {
    background: #f0f0f1;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.erc-price-display p {
    margin: 0;
    font-size: 18px;
}

.erc-waiver-text {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #0073aa;
    margin-bottom: 20px;
    line-height: 1.6;
}

.erc-payment-section {
    margin: 30px 0;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 4px;
}

.erc-form-actions {
    margin-top: 30px;
    text-align: center;
}

.erc-submit-button {
    background: #0073aa;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.erc-submit-button:hover {
    background: #005a87;
}

.erc-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.erc-messages {
    margin-bottom: 20px;
}

.erc-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.erc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #d63638;
}

.erc-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.erc-free-message {
    background: #d4edda;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

.erc-free-message p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #155724;
}

/* Guardian section */
.erc-guardian-section {
    padding: 20px;
    background: #fffbea;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .erc-registration-wrapper {
        padding: 10px;
    }
    
    .erc-form {
        padding: 20px;
    }
    
    .erc-half-width {
        width: 100%;
        margin-right: 0;
    }
}
