/**
 * Frontend Styles for Retreat Registration Form
 */

/* Section */
.ws-retreat-registration-section {
    margin-top: 0;
    padding: 30px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.ws-registration-title {
    margin: 0 0 10px;
    font-size: 1.4em;
    color: #333;
}

/* Closed messages */
.ws-registration-closed {
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.ws-closed-message {
    margin: 0;
    font-size: 1.1em;
    color: #666;
}

/* Notices */
.ws-spots-remaining {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #856404;
}

.ws-close-date-notice {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #004085;
}

/* Form layout */
.ws-retreat-registration-form {
    max-width: 600px;
}

.ws-form-row {
    margin-bottom: 16px;
}

.ws-form-row-2 {
    display: flex;
    gap: 16px;
}

.ws-form-row-2 .ws-form-field {
    flex: 1;
}

.ws-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95em;
    color: #333;
}

.ws-required {
    color: #d63638;
}

.ws-form-field input,
.ws-form-field textarea,
.ws-form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ws-form-field input:focus,
.ws-form-field textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.ws-form-field input[type="number"] {
    max-width: 120px;
}

/* Submit button */
.ws-registration-submit {
    display: inline-block;
    padding: 12px 30px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.ws-registration-submit:hover {
    background: #135e96;
}

.ws-registration-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Messages */
.ws-form-message {
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.95em;
}

.ws-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ws-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 600px) {
    .ws-form-row-2 {
        flex-direction: column;
        gap: 0;
    }

    .ws-retreat-registration-section {
        padding: 20px 15px;
    }
}
