:root {
    --primary-cyan: #00f0ff;
    --primary-purple: #b000ff;
    --dark-bg: #0a0a0f;
    --glass-bg: rgba(20, 20, 35, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --accent-gradient: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    --warning-bg: rgba(255, 157, 0, 0.1);
    --warning-border: rgba(255, 157, 0, 0.3);
}

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

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

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(0, 240, 255, 0.4));
}

.title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
}

.project-info {
    margin-bottom: 1rem;
}

.accordion-section {
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.accordion-header.active {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 700;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
    stroke: #000;
}

.accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease;
    margin-top: 0;
}

.accordion-content.active {
    max-height: 5000px;
    margin-top: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.required {
    color: var(--primary-cyan);
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
    color: rgba(184, 184, 209, 0.5);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 400;
    color: var(--text-primary);
}

.checkbox-label:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-cyan);
}

h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-note {
    background: rgba(0, 240, 255, 0.1);
    border-left: 4px solid var(--primary-cyan);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.warning-box {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-left: 4px solid #ff9d00;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.warning-box svg {
    color: #ff9d00;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

.submit-button {
    background: var(--accent-gradient);
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.5);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button svg {
    stroke: #000;
}

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

    .title {
        font-size: 1.5rem;
    }

    .logo {
        max-width: 150px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .accordion-header {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .submit-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.2rem;
    }

    .logo {
        max-width: 120px;
    }

    .header {
        padding: 1.5rem 1rem;
    }

    .accordion-header {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .glass-panel {
        padding: 1rem;
    }
}

/* Form Validation States */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 77, 77, 0.5);
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: rgba(0, 255, 136, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 35, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
}

/* Loading/Success States */
.form-container.submitting {
    opacity: 0.6;
    pointer-events: none;
}

.success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-left: 4px solid #00ff88;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    color: var(--text-primary);
    text-align: center;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.glass-panel {
    animation: fadeIn 0.5s ease;
}

/* Call-to-Action Section */
.cta-section {
    border-color: rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.2) !important;
}

.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.6);
}

.cta-button:active {
    transform: translateY(-1px) scale(1);
}

@media (max-width: 768px) {
    .cta-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Helper Introduction */
.helper-intro {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    text-align: center;
}

.helper-title {
    font-size: 1.3rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.helper-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Help Box */
.help-box {
    margin-bottom: 1.5rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.help-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    color: var(--primary-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.help-toggle:hover {
    background: rgba(0, 240, 255, 0.08);
}

.help-toggle svg:first-child {
    flex-shrink: 0;
}

.help-arrow {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.help-toggle.active .help-arrow {
    transform: rotate(180deg);
}

.help-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.25rem;
}

.help-content.active {
    max-height: 1000px;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.help-term {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary-cyan);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.help-term:last-child {
    margin-bottom: 0;
}

.help-term strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .helper-intro {
        padding: 1rem;
    }
    
    .helper-title {
        font-size: 1.1rem;
    }
    
    .helper-intro p {
        font-size: 0.9rem;
    }
    
    .help-toggle {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }
    
    .help-term {
        font-size: 0.85rem;
        padding: 0.625rem;
    }
}
