/* WDATR Registration Form */

.srpc-wdatr-registration {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
}

.srpc-wdatr-registration h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1a3a52;
}

/* Event Info */
.srpc-wdatr-event-info {
    background: #f0f4f7;
    border-left: 4px solid #1a3a52;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.srpc-wdatr-event-info p {
    margin: 5px 0;
}

.srpc-wdatr-notice {
    font-style: italic;
    color: #555;
}

/* Closed state */
.srpc-wdatr-closed {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
}

/* Form Sections */
.srpc-wdatr-section {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 25px;
    background: #fff;
}

.srpc-wdatr-section legend {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a52;
    padding: 0 10px;
}

/* Fields */
.srpc-wdatr-field {
    margin-bottom: 15px;
}

.srpc-wdatr-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.srpc-wdatr-field input[type="text"],
.srpc-wdatr-field input[type="email"],
.srpc-wdatr-field input[type="tel"],
.srpc-wdatr-field input[type="date"],
.srpc-wdatr-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.srpc-wdatr-field input:focus,
.srpc-wdatr-field select:focus {
    border-color: #1a3a52;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 58, 82, 0.15);
}

.srpc-wdatr-field select:disabled {
    background: #f5f5f5;
    color: #999;
}

.required {
    color: #d32f2f;
}

/* Field Rows (multi-column) */
.srpc-wdatr-field-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.srpc-wdatr-field-row .srpc-wdatr-field {
    flex: 1;
    margin-bottom: 0;
}

.srpc-wdatr-field--city { flex: 3; }
.srpc-wdatr-field--state { flex: 1; min-width: 80px; }
.srpc-wdatr-field--zip { flex: 1.5; min-width: 100px; }

/* Helper text */
.srpc-wdatr-helper {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    font-style: italic;
}

/* Line item (registration confirmation) */
.srpc-wdatr-line-item {
    background: #e8f5e9;
    padding: 12px 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-weight: 600;
}

.srpc-wdatr-price {
    font-size: 18px;
    color: #2e7d32;
}

/* Checkbox */
.srpc-wdatr-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.srpc-wdatr-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Conditional sections */
.srpc-wdatr-conditional {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Friend entries */
.srpc-wdatr-friend-entry {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #fafafa;
}

.srpc-wdatr-friend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.srpc-wdatr-friend-header h4 {
    margin: 0;
    font-size: 16px;
    color: #1a3a52;
}

.srpc-wdatr-remove-friend {
    background: none;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.srpc-wdatr-remove-friend:hover {
    background: #d32f2f;
    color: #fff;
}

/* Buttons */
.srpc-wdatr-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.srpc-wdatr-btn--primary {
    background: #ff6b35;
    color: #fff;
    font-size: 18px;
    padding: 15px 40px;
    width: 100%;
}

.srpc-wdatr-btn--primary:hover {
    background: #e85a2a;
}

.srpc-wdatr-btn--primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.srpc-wdatr-btn--secondary {
    background: #fff;
    color: #1a3a52;
    border: 2px solid #1a3a52;
}

.srpc-wdatr-btn--secondary:hover {
    background: #1a3a52;
    color: #fff;
}

/* Order Summary */
.srpc-wdatr-order-summary {
    background: #f8f9fa;
    border: 2px solid #1a3a52;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.srpc-wdatr-order-summary h3 {
    margin: 0 0 15px 0;
    color: #1a3a52;
    font-size: 20px;
}

.srpc-wdatr-order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
}

.srpc-wdatr-order-item:last-child {
    border-bottom: none;
}

.srpc-wdatr-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #1a3a52;
    font-size: 22px;
    text-align: right;
    color: #1a3a52;
}

/* Submit area */
.srpc-wdatr-submit {
    text-align: center;
}

/* Messages */
.srpc-wdatr-messages {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 15px;
    text-align: left;
}

.srpc-wdatr-messages--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.srpc-wdatr-messages--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Responsive */
@media (max-width: 600px) {
    .srpc-wdatr-registration {
        padding: 10px !important;
    }

    .srpc-wdatr-section {
        padding: 15px;
    }

    .srpc-wdatr-field-row {
        flex-direction: column;
        gap: 0;
    }

    .srpc-wdatr-field-row .srpc-wdatr-field {
        margin-bottom: 15px;
    }

    .srpc-wdatr-line-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .srpc-wdatr-btn--primary {
        padding: 12px 20px;
        font-size: 16px;
    }
}
