/* PALLA Nomination Form Styles */

.palla-nomination-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
}

.palla-form-header {
    margin-bottom: 40px;
    text-align: center;
}

.palla-header-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.palla-flyer {
    max-height: 300px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.palla-header-images h1 {
    color: #1a365d;
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    max-width: 800px;
}

@media (max-width: 768px) {
    .palla-header-images h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .palla-flyer {
        max-height: 250px;
    }
}

.palla-form-header p {
    font-size: 16px;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Form Sections */
.form-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 25px 30px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 20px;
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
    margin-bottom: 15px;
}

/* Form Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.required {
    color: #e53e3e;
    margin-left: 3px;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    color: #4a5568;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="file"] {
    padding: 8px 0;
    border: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

/* Form Description */
.description {
    font-size: 13px;
    color: #718096;
    margin-top: 5px;
    font-style: italic;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.button {
    display: inline-block;
    background: #3182ce;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.button:hover {
    background: #2b6cb0;
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* Loading Indicator */
.palla-loading {
    display: inline-block;
    margin-left: 15px;
    color: #4a5568;
    font-style: italic;
}

/* Form Messages */
#palla-form-messages {
    margin-bottom: 25px;
}

.notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.notice.success {
    background-color: #f0fff4;
    border-left-color: #48bb78;
    color: #2f855a;
}

.notice.error {
    background-color: #fff5f5;
    border-left-color: #f56565;
    color: #c53030;
}

/* Success Message */
#palla-form-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

#palla-form-success h3 {
    color: #2f855a;
    margin-top: 0;
    margin-bottom: 15px;
}

#palla-form-success p {
    margin-bottom: 15px;
    color: #2f855a;
}

#palla-form-success a {
    color: #2b6cb0;
    text-decoration: none;
}

#palla-form-success a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .palla-nomination-form-container {
        padding: 20px 15px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        margin: 0;
    }
    
    .form-row .form-group {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .button {
        width: 100%;
        padding: 12px;
    }
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.file-upload-input {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 12px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-label:hover {
    border-color: #a0aec0;
    background: #edf2f7;
}

.file-upload-label i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: #718096;
}

.file-upload-filename {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #4a5568;
    word-break: break-all;
}
