* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #167E74 0%, #646567 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #646567 0%, #646567 50%, #646567 100%);
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 300;
    margin-left: 20px;
    text-align: left;
    flex: 1;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.content {
    padding: 40px;
}

.upload-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.upload-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.upload-section p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.upload-section:hover {
    border-color: #DA001A;
    background: #f0f0f0;
}

.upload-section.dragover {
    border-color: #DA001A;
    background: #e8f4f8;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

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

.file-input-button {
    background: #DA001A;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-input-button:hover {
    background: #8C1E31;
}

.file-info {
    margin-top: 15px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    display: none;
}

.upload-button {
    background: #167E74;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.upload-button:hover {
    background: #0f5f56;
}

.upload-button:disabled {
    background: #646567;
    cursor: not-allowed;
}

.status-section {
    display: none;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.status-message {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #0c5460;
}


.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    color: #721c24;
    display: none;
}

.reset-button {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    margin-top: 10px;
}

.reset-button:hover {
    background: #5a6268;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .header h1 {
        font-size: 2.2em;
        margin-left: 20px;
    }
    
    .logo-area {
        width: 90px;
        height: 45px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .content {
        padding: 20px;
    }
    
    .header {
        min-height: 60px;
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.2em;
        margin-left: 15px;
        line-height: 1.1;
        font-weight: 400;
    }
    
    .logo-area {
        width: 50px;
        height: 30px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .container {
        margin: 5px;
        border-radius: 8px;
    }
    
    .content {
        padding: 15px;
    }
    
    .header {
        min-height: 50px;
        padding: 8px;
    }
    
    .header h1 {
        font-size: 1em;
        margin-left: 12px;
        line-height: 1;
        font-weight: 500;
    }
    
    .logo-area {
        width: 40px;
        height: 25px;
    }
    
    .upload-section {
        padding: 25px 15px;
    }
    
    .upload-section h3 {
        font-size: 1.2em;
    }
    
    .upload-section p {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .file-input-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .upload-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
}

/* Extra small mobile styles */
@media (max-width: 360px) {
    .header h1 {
        font-size: 0.9em;
        margin-left: 10px;
    }
    
    .logo-area {
        width: 35px;
        height: 20px;
    }
    
    .header {
        min-height: 45px;
        padding: 6px;
    }
    
    .container {
        margin: 3px;
    }
    
    .content {
        padding: 12px;
    }
}

/* CAPTCHA Section Styles */
.captcha-section {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.captcha-section h3 {
    color: #856404;
    margin-bottom: 15px;
}

.captcha-section p {
    color: #856404;
    margin-bottom: 10px;
}

.captcha-iframe-container {
    margin: 20px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.captcha-note {
    font-style: italic;
    color: #6c757d;
    margin-top: 15px;
}

#captchaUrl {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

#captchaUrl:hover {
    text-decoration: underline;
}

/* Logo area styles */
.logo-area {
    position: static;
    width: 100px;
    height: 50px;
    background: transparent;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.3); */
    padding: 8px;
    border: 0px solid #D2AE6C;
    flex-shrink: 0;
}

.logo-area img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0px;
}

/* Additional gold accents */
.file-info {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #D2AE6C;
    border-radius: 5px;
    display: none;
}

.status-message {
    background: #e8f4f8;
    border: 1px solid #D2AE6C;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #0c5460;
}