:root {
    --primary-color: #2f3a51;
    --secondary-color: #d53f34;
    --light-primary: #4a5a77;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    min-height: 100vh;
}

#form {
    max-width: 960px;
}

.hero-section {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
    border: 1px solid #e0e6ed;
}

.download-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(47, 58, 81, 0.3);
    background: var(--light-primary);
}

.btn-success {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(47, 58, 81, 0.3);
    background: var(--light-primary);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(47, 58, 81, 0.25);
}

.download-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.download-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.download-item:hover::before {
    transform: scaleY(1);
}

.file-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
}

.welcome-message {
    background: white;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e6ed;
}

.text-primary {
    color: #d53f34 !important;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 1rem 0;
    }

    .form-container, .download-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .download-item {
        padding: 1rem;
    }

    .file-icon {
        font-size: 2rem;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.lead{
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* New collapsible section styles */
.collapsible-section {
    position: relative;
    margin-bottom: 2rem;
}

.collapsible-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.collapsible-header h1 {
    margin-bottom: 0;
}

.collapsible-content {
    position: relative;
    max-height: 45px; /* Shows about 10% of content */
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.collapsible-content.collapsed {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.collapsible-content.expanded {
    max-height: 2000px; /* Enough to show all content */
    mask-image: none;
    -webkit-mask-image: none;
}

.expand-btn-container {
    text-align: center;
    margin-top: 1rem;
    position: relative;
}

.expand-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.expand-btn .icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.expanded .expand-btn .icon {
    transform: rotate(180deg);
}