/* Community Event Submission Form - Styles */

.cesf-form-wrap {
    max-width: 100%;
    margin: 0;
    font-family: inherit;
}

.cesf-form .cesf-field {
    margin-bottom: 20px;
}

.cesf-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
    color: #1a1a1a;
}

.cesf-form input[type="text"],
.cesf-form input[type="email"],
.cesf-form input[type="tel"],
.cesf-form input[type="date"],
.cesf-form input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.cesf-form input[type="text"]:focus,
.cesf-form input[type="email"]:focus,
.cesf-form input[type="tel"]:focus,
.cesf-form input[type="date"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

.cesf-form input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.cesf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 540px) {
    .cesf-field-row {
        grid-template-columns: 1fr;
    }
}

.cesf-field-row .cesf-field {
    margin-bottom: 0;
}

.cesf-radio-group {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 10px 0;
}

.cesf-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    font-size: 15px;
    cursor: pointer;
}

.cesf-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0073aa;
}

.cesf-conditional-location {
    transition: all 0.2s ease;
}

.cesf-required {
    color: #d63638;
    margin-left: 2px;
}

.cesf-field-hint {
    font-size: 13px;
    color: #757575;
    margin: 5px 0 0 0;
}

.cesf-has-error input,
.cesf-has-error textarea {
    border-color: #d63638 !important;
}

.cesf-error-msg {
    display: block;
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.cesf-submit-btn {
    background: #6CB6B7;
    color: #fff;
    border: none;
    padding: 13px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.cesf-submit-btn:hover {
    background: #6CB6B7;
}

.cesf-submit-btn:active {
    background: #6CB6B7;
    transform: scale(0.99);
}

.cesf-success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.cesf-notice {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.cesf-notice.cesf-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.g-recaptcha {
    margin-top: 4px;
}

/* Date Picker Overrides */
.ui-datepicker {
    font-family: inherit;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 10px;
    z-index: 9999 !important;
}

.ui-datepicker-header {
    background: #0073aa;
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 8px 0;
}

.ui-datepicker-title {
    color: #fff;
    font-weight: 600;
}

.ui-datepicker-prev, .ui-datepicker-next {
    top: 6px;
    cursor: pointer;
}

.ui-datepicker-prev span, .ui-datepicker-next span {
    background-image: none !important;
}

.ui-datepicker-prev:before {
    content: '‹';
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    top: 0; left: 4px;
}

.ui-datepicker-next:before {
    content: '›';
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    top: 0; right: 4px;
}

.ui-datepicker td span, .ui-datepicker td a {
    text-align: center;
    padding: 5px;
    border-radius: 4px;
}

.ui-datepicker td a:hover {
    background: #e8f4fd;
    color: #0073aa;
    border: none;
}

.ui-datepicker td.ui-datepicker-today a {
    background: #e8f4fd;
    color: #0073aa;
    font-weight: 600;
    border: 1px solid #b3d9f0;
}

.ui-datepicker td.ui-state-active a,
.ui-datepicker td .ui-state-active {
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    color: #fff;
    margin: 0 2px;
}

/* Checkbox + Time Fields */
.cesf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400 !important;
    cursor: pointer;
    font-size: 15px;
}

.cesf-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0073aa;
    cursor: pointer;
    flex-shrink: 0;
}

.cesf-time-fields select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
    appearance: auto;
}

.cesf-time-fields select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}
