/* General styles */
* {
    box-sizing: border-box;
    font-family: "Arimo", "Arial", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-image: url("clouds.png");
    background-color: #fff;
    background-size: cover;        /* Scales image to cover entire container */
    background-position: center;   /* Centers the image */
    background-repeat: no-repeat;  /* Prevents tiling */
    background-attachment: fixed;
    color: #333333;
    line-height: 1.6;
}

/* Logo styling */
.logo-container {
    text-align: center;
    padding: 20px 0;
    background-color: #fff;
}

.site-logo {
    max-width: 180px;
    height: auto;
}

.form-container {
    max-width: 800px;
    margin: 20px auto 40px;
    padding: 30px;
    background-color: #F1F2FF;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

h1 {
    font-size: 28px;
    color: #8e44ad; /* Purple brand color */
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

/* Form elements */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
    font-size: 15px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #8e44ad; /* Purple brand color */
    outline: none;
}

input[type="file"] {
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
}

.file-types {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* Button styles */
.button-container {
    margin-top: 30px;
}

.submit-button {
    background-color: #8e44ad; /* Purple brand color */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s;
}

.submit-button:hover {
    background-color: #7d3c98; /* Slightly darker purple */
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(1px);
}

/* Loading overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8e44ad; /* Purple brand color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message boxes */
.message-box {
    padding: 18px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.success {
    background-color: #edf7ed;
    color: #1e4620;
    border: 1px solid #c6e9c6;
}

.error {
    background-color: #fdecea;
    color: #611a15;
    border: 1px solid #f5c2c7;
}

.hidden {
    display: none !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .form-container {
        margin: 15px;
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .submit-button {
        width: 100%;
    }
    
    .site-logo {
        max-width: 150px;
    }
}

/* File upload styling */
.file-upload {
    border: 2px dashed #e0e0e0;
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    background-color: #f9f9f9;
}

.file-upload.active {
    border-color: #8e44ad; /* Purple brand color */
    background-color: #f6f0f8; /* Light purple background */
}

.file-upload label {
    display: block;
    cursor: pointer;
    margin: 0;
    color: #555;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.upload-icon {
    display: block;
    font-size: 40px;
    color: #8e44ad; /* Purple brand color */
    margin-bottom: 15px;
}

.file-name {
    display: none;
    margin-top: 12px;
    font-weight: 500;
    word-break: break-all;
    color: #333333;
}

.file-name.active {
    display: block;
}

/* Option display styles */
.content-option {
    display: block;
}

.content-option.hidden {
    display: none;
}

/* Email instructions styling */
.email-instructions {
    line-height: 1.6;
}

.email-instructions p {
    margin-bottom: 20px;
    color: #333333;
}

.email-instructions strong {
    color: #333333;
    font-weight: 700;
}

.email-instructions a {
    color: #8e44ad; /* Purple brand color */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.email-instructions a:hover {
    color: #7d3c98; /* Slightly darker purple */
    text-decoration: underline;
}

/* Center headings and general container content */
h1, 
.email-instructions,
.button-container {
    text-align: center;
}

/* Keep form fields left-aligned for better usability */
.form-group {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Center the file upload area */
.file-upload {
    text-align: center;
}

/* Add these styles to your existing styles.css file */

/* Enhanced overlay system */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px); /* Add subtle blur effect */
}

/* Overlay content sections */
.overlay-content {
    text-align: center;
    max-width: 400px;
    padding: 30px;
}

.overlay-content.hidden {
    display: none;
}

/* Loading state (keep existing spinner styles, add loading text) */
.loading-text {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* Success state */
.success-icon {
    font-size: 64px;
    color: #27ae60;
    margin-bottom: 20px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 15px;
}

.success-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Error state */
.error-icon {
    font-size: 64px;
    color: #e74c3c;
    margin-bottom: 20px;
    animation: errorShake 0.6s ease-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-title {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Close button */
.close-button {
    background-color: #8e44ad;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.close-button:hover {
    background-color: #7d3c98;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.close-button.error {
    background-color: #e74c3c;
}

.close-button.error:hover {
    background-color: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.close-button.success {
    background-color: #27ae60;
}

.close-button.success:hover {
    background-color: #219a52;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Responsive updates */
@media (max-width: 768px) {
    .overlay-content {
        padding: 20px;
        margin: 0 20px;
    }

    .success-title, .error-title {
        font-size: 20px;
    }

    .success-icon, .error-icon {
        font-size: 48px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #FFF;
    text-decoration: none;
}

.whatsapp-float i {
    margin-top: 16px;
    color: white;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    
    .whatsapp-float i {
        margin-top: 13px;
    }
}

/* Form instructions styling (similar to email instructions) */
.form-instructions {
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

.form-instructions p {
    margin-bottom: 20px;
    color: #333333;
}

.form-instructions strong {
    color: #333333;
    font-weight: 700;
}

.form-instructions a {
    color: #8e44ad; /* Purple brand color */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-instructions a:hover {
    color: #7d3c98; /* Slightly darker purple */
    text-decoration: underline;
}

/* Needs Review state - Add to your existing styles.css */

.needs-review-icon {
    font-size: 64px;
    color: #f39c12; /* Orange/yellow color */
    margin-bottom: 20px;
    animation: needsReviewPulse 0.6s ease-out;
}

@keyframes needsReviewPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.needs-review-title {
    font-size: 24px;
    font-weight: 700;
    color: #f39c12; /* Orange/yellow color */
    margin-bottom: 15px;
}

.needs-review-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.close-button.needs-review {
    background-color: #f39c12; /* Orange/yellow color */
}

.close-button.needs-review:hover {
    background-color: #e67e22; /* Darker orange on hover */
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Responsive updates for needs review */
@media (max-width: 768px) {
    .needs-review-title {
        font-size: 20px;
    }

    .needs-review-icon {
        font-size: 48px;
    }
}

.duplicate-icon {
    font-size: 64px;
    color: #f39c12; /* Orange/yellow color - same as needs-review */
    margin-bottom: 20px;
    animation: duplicatePulse 0.6s ease-out;
}

@keyframes duplicatePulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.duplicate-title {
    font-size: 24px;
    font-weight: 700;
    color: #f39c12; /* Orange/yellow color - same as needs-review */
    margin-bottom: 15px;
}

.duplicate-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.close-button.duplicate {
    background-color: #f39c12; /* Orange/yellow color - same as needs-review */
}

.close-button.duplicate:hover {
    background-color: #e67e22; /* Darker orange on hover - same as needs-review */
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Responsive updates for duplicate */
@media (max-width: 768px) {
    .duplicate-title {
        font-size: 20px;
    }

    .duplicate-icon {
        font-size: 48px;
    }
}
