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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.upload-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-section {
    flex: 1;
    min-width: 300px;
}

.upload-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.standard-contract-options {
    margin-top: 1rem;
    text-align: center;
}

.standard-contract-options label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.drop-zone-active {
    border-color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

.file-input {
    display: none;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drop-zone-content img {
    width: 50px;
    height: 50px;
    opacity: 0.6;
}

.drop-zone-content p {
    margin: 0;
    color: #6c757d;
}

.file-details {
    display: none;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;

    /* color: #555;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 0; */
}

.file-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border-radius: 4px;
}

.file-text {
    flex-grow: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 2px;
    word-break: break-all;
}

.file-meta {
    font-size: 12px;
    color: #6c757d;
}

.remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.remove-file:hover {
    color: #bd2130;
}

.upload-status {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
}

.upload-status.error {
    color: #dc3545;
}

.process-button {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.process-button:hover {
    background-color: #1976D2;
}

.process-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

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

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-button {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

#email-form {
    margin-top: 20px;
}

#email-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.submit-button, .cancel-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.submit-button {
    background-color: #2196F3;
    color: white;
}

.submit-button:hover {
    background-color: #1976D2;
}

.cancel-button {
    background-color: #f5f5f5;
    color: #333;
}

.cancel-button:hover {
    background-color: #e0e0e0;
}

.email-error {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
    display: none;
}

#email-input.invalid {
    border-color: #dc3545;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 10px;
    color: #2196F3;
    font-weight: 500;
}

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


/* Contract Type Info Styles */
.contract-type-info {
    margin-top: 12px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #4a6fa5;
}

.contract-type {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: 600;
}

.contract-icon {
    font-size: 1.3em;
    margin-right: 8px;
}

.contract-name {
    font-size: 1.1em;
    color: #2c3e50;
}

.contract-explanation {
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
}

.mailchimp-subscription {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.mailchimp-subscription label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mailchimp-subscription input[type="checkbox"] {
    margin: 0;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#recaptcha-error {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
    display: none;
}

.request-id {
    font-size: 0.8em;
    color: #bbb;
    user-select: all;
    opacity: 0.5;
}

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