/**
 * Jeb Stuart Board Form Styles
 */

.jsbf-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.jsbf-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0073aa;
}

.jsbf-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #0073aa;
    font-weight: 700;
}

.jsbf-form-header h3 {
    margin: 0;
    font-size: 20px;
    color: #555;
    font-weight: 400;
}

.jsbf-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.jsbf-section-title {
    margin: 0 0 25px 0;
    font-size: 20px;
    color: #0073aa;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.jsbf-form-group {
    margin-bottom: 20px;
}

.jsbf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.jsbf-form-group input[type="text"],
.jsbf-form-group input[type="email"],
.jsbf-form-group input[type="tel"],
.jsbf-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.jsbf-form-group input[type="text"]:focus,
.jsbf-form-group input[type="email"]:focus,
.jsbf-form-group input[type="tel"]:focus,
.jsbf-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.jsbf-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.required {
    color: #d63638;
    font-weight: bold;
}

.jsbf-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.jsbf-col-half {
    flex: 1;
}

.jsbf-col-third {
    flex: 1;
}

.jsbf-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.jsbf-checkbox-item {
    display: flex;
    align-items: center;
}

.jsbf-checkbox-item label {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.jsbf-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.jsbf-other-skill {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jsbf-other-skill input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.jsbf-radio-group {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.jsbf-radio-group label {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.jsbf-radio-group input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.jsbf-reference-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.jsbf-reference-group h5 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.jsbf-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500 !important;
}

.jsbf-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.jsbf-form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.jsbf-submit-btn {
    padding: 15px 50px;
    background: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.3);
}

.jsbf-submit-btn:hover {
    background: #005a87;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.4);
    transform: translateY(-2px);
}

.jsbf-submit-btn:active {
    transform: translateY(0);
}

.jsbf-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.jsbf-message {
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
}

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

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

.jsbf-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .jsbf-form-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .jsbf-form-header h2 {
        font-size: 22px;
    }
    
    .jsbf-form-header h3 {
        font-size: 16px;
    }
    
    .jsbf-section {
        padding: 20px;
    }
    
    .jsbf-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .jsbf-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .jsbf-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .jsbf-submit-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

/* Print Styles */
@media print {
    .jsbf-form-actions {
        display: none;
    }
    
    .jsbf-form-container {
        box-shadow: none;
        padding: 20px;
    }
}