/* Contest Button and Wrapper */
.uag-contest-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.uag-contest-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid rgb(121, 36, 47);
    background-color: #ffffff;
    color: rgb(121, 36, 47);
    transition: all 0.3s ease;
    border-radius: 5px;
}

.uag-contest-button svg {
    fill: rgb(121, 36, 47);
    transition: fill 0.3s ease;
}

.uag-contest-button:hover {
    background-color: rgb(121, 36, 47);
    color: #ffffff;
}

.uag-contest-button:hover svg {
    fill: #ffffff;
}

.uag-contest-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Modal Styles */
.uag-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.uag-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0 !important;
    border: 1px solid #ddd;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.uag-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.uag-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.uag-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.uag-modal-close:hover,
.uag-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#uag-contest-form-container {
    padding: 20px 30px 30px 30px;
}

.uag-contest-instructions {
    background-color: #f8f9fa;
    border-left: 4px solid rgb(121, 36, 47);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Form Styles */
#uag-contest-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.uag-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uag-form-field label {
    font-weight: bold;
}

.uag-form-field input[type="email"],
.uag-form-field input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.uag-form-field input[type="email"]:focus,
.uag-form-field input[type="text"]:focus {
    outline: none;
    border-color: rgb(121, 36, 47);
    box-shadow: 0 0 0 3px rgba(121, 36, 47, 0.1);
}

/* --- Drag and Drop File Input --- */
.uag-form-field input[type="file"] {
    display: none;
}

.uag-file-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #fafafa;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.uag-file-drop-zone:hover {
    border-color: rgb(121, 36, 47);
    background-color: #fefafa;
}

.uag-file-drop-zone.dragover {
    border-style: solid;
    border-color: rgb(121, 36, 47);
    background-color: rgba(121, 36, 47, 0.05);
    transform: scale(1.02);
}

.uag-file-drop-zone.file-selected {
    border-style: solid;
    border-color: #28a745;
    background-color: #f0fff4;
}

.uag-file-drop-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.uag-file-drop-message svg {
    color: rgb(121, 36, 47);
    width: 32px;
    height: 32px;
}

.uag-file-drop-zone.file-selected .uag-file-drop-message svg {
    display: none;
}

.uag-file-drop-zone.file-selected .uag-file-drop-text {
    display: none;
}

.uag-file-name {
    font-weight: bold;
    color: #155724;
}

#uag-contest-form .uag-contest-button {
    width: 100%;
    justify-content: center;
}

.uag-form-feedback {
    padding: 10px;
    border-radius: 4px;
    display: none;
    margin-top: 10px;
}

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

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

.uag-progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.uag-progress-bar {
    width: 0;
    height: 10px;
    background-color: rgb(121, 36, 47);
    border-radius: 5px;
    transition: width 0.4s ease;
}