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

:root {
    --primary-color: #4A90E2;
    --primary-hover: #357ABD;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --background: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

header p {
    color: var(--text-light);
    font-size: 1.1em;
}

main {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.required {
    color: var(--error-color);
}

input[type="email"],
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.9em;
    margin-top: 5px;
    min-height: 20px;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.05);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 5px;
}

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

.selected-file {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--background);
    border-radius: 5px;
    margin-top: 15px;
}

.file-icon {
    font-size: 2em;
    margin-right: 15px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 5px;
}

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

.remove-file {
    background: var(--error-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.remove-file:hover {
    opacity: 0.8;
}

.progress-container {
    margin-top: 20px;
    padding: 20px;
    background: var(--background);
    border-radius: 5px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
}

#progressText {
    color: var(--text-color);
    font-weight: 500;
}

#progressPercent {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s;
    border-radius: 10px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-primary,
.btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    margin: 0 auto 20px;
}

.success-message h2 {
    color: var(--success-color);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.success-message .btn-secondary {
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .file-upload-area {
        padding: 30px 20px;
    }
}
