/* Ghana International Awards - Nomination Form Styles */

.nomination-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(139, 0, 0, 0.05));
}

.nomination-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.nomination-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group label::after {
    content: " *";
    color: #e74c3c;
}

.form-group label:not([for="stage_name"]):not([for="email"]):not([for="nominee_image"])::after {
    content: " *";
    color: #e74c3c;
}

.form-group label[for="stage_name"]::after,
.form-group label[for="email"]::after,
.form-group label[for="nominee_image"]::after {
    content: "";
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group select {
    cursor: pointer;
    background-color: white;
}

/* File Upload Styles */
.file-upload-container {
    position: relative;
    width: 100%;
}

.file-upload-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #D4AF37;
    border-radius: 8px;
    background-color: rgba(212, 175, 55, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: #B8860B;
}

.file-upload-label i {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 15px;
}

.file-upload-label span {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 500;
}

.file-upload-label small {
    font-size: 14px;
    color: #666;
}

/* Image Preview */
.image-preview {
    margin-top: 15px;
    display: none;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-preview .remove-image {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.image-preview .remove-image:hover {
    background-color: #c0392b;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.form-actions .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-actions .btn-primary {
    background-color: #D4AF37;
    color: white;
}

.form-actions .btn-primary:hover {
    background-color: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.form-actions .btn-secondary {
    background-color: transparent;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.form-actions .btn-secondary:hover {
    background-color: #8B0000;
    color: white;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nomination-section {
        padding: 60px 0;
    }
    
    .nomination-form-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Form Validation Styles */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

/* Loading State */
.form-actions .btn.loading {
    position: relative;
    color: transparent;
}

.form-actions .btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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