/* Upload Page Specific Styles */
.page-upload .upload-container {
    max-width: 90%; /* Adjust as needed */
    margin: 2em auto;
    padding: 2em;
    background-color: #f9f9f9; /* Light background for the main container */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-upload h1 {
    text-align: center;
    margin-bottom: 0.5em;
    color: var(--primary-color); /* Use global variable */
}

.page-upload .page-subtitle {
    text-align: center;
    margin-bottom: 1em;
    color: var(--text-color-secondary); /* Use global variable */
    font-size: 1.1em;
}

.upload-steps {
    display: flex;
    flex-direction: row;
    gap: 2em; /* Space between steps */
    justify-content: center;
}

.upload-step.card {
    background-color: #ffffff; /* White background for cards */
    padding: 1.5em 2em;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-top: 20px;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75em;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color); /* Use global variable */
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 0.75em;
    flex-shrink: 0; /* Prevent shrinking */
}

.step-header h2 {
    margin: 0;
    font-size: 1.4em;
    color: var(--primary-color-dark); /* Use global variable */
}

/* --- Upload Area --- */
.upload-area p {
    margin-bottom: 1em;
    color: var(--text-color-secondary);
}

.upload-box {
    border: 2px dashed var(--primary-color-light); /* Use global variable */
    border-radius: 8px;
    padding: 2em;
    text-align: center;
    background-color: #fdfdfd;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 1em;
}

.upload-box:hover,
.upload-box.dragover { /* Add class via JS on drag enter/over */
    background-color: #f0f8ff; /* Light blue background on hover/drag */
    border-color: var(--primary-color);
}

.upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.upload-label img {
    opacity: 0.7;
    margin-bottom: 0.5em;
}

.upload-label strong {
    font-size: 1.1em;
    color: var(--primary-color-dark);
}

.browse-button {
    display: inline-block;
    padding: 0.6em 1.2em;
    background-color: var(--secondary-color); /* Use global variable */
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 0.5em 0;
}

.browse-button:hover {
    background-color: var(--secondary-color-dark); /* Use global variable */
}

.file-types {
    font-size: 0.9em;
    color: var(--text-color-light);
}

.file-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8em 1em;
    background-color: #e9f5ff;
    border: 1px solid var(--primary-color-light);
    border-radius: 4px;
    margin-top: 1em;
}

#file-name-display {
    font-weight: 500;
    color: var(--primary-color-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 1em;
}

.remove-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.2em;
}

.remove-button:hover {
    color: var(--danger-color); /* Define in global.css if needed */
}

.file-size-limit {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-color-light);
    margin-top: 1em;
}

/* --- Job Description Area --- */
.job-description-area p {
    margin-bottom: 1em;
    color: var(--text-color-secondary);
}

.job-description-area textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
    resize: vertical; /* Allow vertical resizing */
    min-height: 150px; /* Ensure decent minimum height */
    box-sizing: border-box; /* Include padding and border in width */
}

.job-description-area textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2); /* Subtle focus ring */
}

/* --- Submit Section --- */
.submit-section p {
    margin-bottom: 0.75em;
    text-align: center;
}

.cost-display {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color-dark);
    margin-bottom: 1em !important; /* Ensure spacing */
}

.submit-section .cta-button {
    display: block; /* Make button full width within its container */
    width: 100%;
    max-width: 300px; /* Optional: constrain max width */
    margin: 0 auto; /* Center the button */
    padding: 0.8em 1.5em;
    font-size: 1.1em;
}

.status-message,
.error-message {
    margin-top: 1em;
    padding: 0.8em;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.status-message {
    background-color: #e9f5ff;
    color: var(--primary-color-dark);
    border: 1px solid var(--primary-color-light);
}

.error-message {
    background-color: #ffebee; /* Light red background */
    color: #c62828; /* Darker red text */
    border: 1px solid #ef9a9a; /* Lighter red border */
}

/* Responsive Adjustments (Example) */
@media (max-width: 768px) {
    .page-upload .upload-container {
        margin: 1em;
        padding: 1em;
    }

    .upload-step.card {
        padding: 1em 1.5em;
    }

    .step-header h2 {
        font-size: 1.2em;
    }

    .upload-box {
        padding: 1.5em;
    }

    .upload-steps {
        flex-direction: column; /* Stack steps vertically on smaller screens */
        gap: 1.5em; /* Adjust gap for vertical layout */
    }
}
