/* Golden Brown Color Palette */
:root {
    --primary-brown: #8B5E3C;
    --deep-brown: #5A3C28;
    --light-coffee: #DCC7A1;
    --cream: #F5F0E8;
    --dark-charcoal: #1C1C1C;
    --white: #FFFFFF;
    --coffee-gradient: linear-gradient(135deg, #8B5E3C, #5A3C28);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, #F8F4ED 100%);
    color: var(--dark-charcoal);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(139, 94, 60, 0.1);
    border: 1px solid var(--light-coffee);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--primary-brown);
    font-size: 24px;
    font-weight: 600;
}

.logo i {
    font-size: 28px;
}

.header-title h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 8px;
}

.accent-line {
    width: 80px;
    height: 4px;
    background: var(--coffee-gradient);
    border-radius: 2px;
}

/* Main Content */
.main-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(139, 94, 60, 0.1);
    border: 1px solid var(--light-coffee);
}

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

.form-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-coffee);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    background: var(--cream);
    border: 2px solid var(--deep-brown);
    border-radius: 12px;
    font-size: 16px;
    color: var(--dark-charcoal);
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-brown);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.1);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--deep-brown);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -8px;
    font-size: 12px;
    color: var(--primary-brown);
    background: var(--white);
    font-weight: 500;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Upload Cards */
.upload-card {
    background: var(--cream);
    border: 2px solid var(--primary-brown);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 94, 60, 0.15);
    border-color: var(--deep-brown);
}

.upload-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: var(--coffee-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    font-size: 24px;
    flex-shrink: 0;
}

.upload-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 8px;
}

.upload-card p {
    color: var(--deep-brown);
    font-size: 14px;
    margin-bottom: 16px;
}

.upload-card input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

.upload-area {
    border: 2px dashed var(--primary-brown);
    border-radius: 12px;
    padding: 20px;
    background: var(--white);
    transition: all 0.3s ease;
}

.upload-card:hover .upload-area {
    border-color: var(--deep-brown);
    background: var(--cream);
}

.upload-area span {
    color: var(--primary-brown);
    font-weight: 500;
}

/* File Preview */
.file-preview {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 8px;
    font-size: 12px;
    color: var(--deep-brown);
    display: none;
}

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

.file-preview .file-tag {
    background: var(--primary-brown);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 8px;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--light-coffee);
}

.btn-primary {
    background: var(--coffee-gradient);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 94, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 94, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 20px;
    }
    
    .main-content {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .header-title h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .upload-card {
        padding: 16px;
    }
    
    .upload-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}