/* Naveed CCRAF Forms - Frontend Styles */

.naveed-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.naveed-form-container h2 {
    color: #000;
    margin-bottom: 20px;
    border-bottom: 3px solid #fdd831;
    padding-bottom: 10px;
}

.naveed-form-container h3 {
    color: #000;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fdd831;
}

.naveed-form-container h4 {
    color: #333;
    margin: 25px 0 15px;
}

.form-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #fdd831;
}

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

.form-row .form-group {
    flex: 1;
}

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

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

.form-group label.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-group label.checkbox-label input {
    margin-right: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fdd831;
    box-shadow: 0 0 0 3px rgba(253, 216, 49, 0.2);
}

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

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

.form-submit {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #fdd831;
}

.submit-btn {
    background: #000;
    color: #fdd831;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #fdd831;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

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

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

/* File upload styling */
.form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    background: #fafafa;
}

.form-group input[type="file"]:hover {
    border-color: #fdd831;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .naveed-form-container {
        padding: 20px;
    }
}

/* Small text styling */
.form-group small {
    color: #666;
    font-weight: normal;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}
/* Form hints and error messages */
.form-hint {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    font-style: italic;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-top: 10px;
}

/* Radio group styling */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 8px;
    cursor: pointer;
}

.radio-label input {
    margin-right: 10px;
}

/* Checkbox group validation */
.checkbox-group[data-required="true"] {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    background: #fafafa;
}

.checkbox-group[data-required="true"]:has(input:checked) {
    border-color: #5cb85c;
    background: #f8fff8;
}

.checkbox-group[data-required="true"]:has(.error) {
    border-color: #d9534f;
    background: #fff8f8;
}

/* Word counter */
.word-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.word-counter.limit-exceeded {
    color: #d9534f;
    font-weight: bold;
}