/* Modern Proposal Page Styles - Enhanced Tokyo Night Theme */

/* ==================== Hero Section ==================== */
.main_proposal {
    min-height: 50vh;
    position: relative;
    overflow: hidden;
}

.main_proposal .main__badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.main_proposal .main__title {
    margin-bottom: 1.5rem;
}

/* ==================== Form Section ==================== */
.form-section {
    padding: 4rem 0;
    position: relative;
}

.form__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Form Introduction */
.form__intro {
    text-align: center;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.form__intro::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    border-radius: 20px;
    opacity: 0.5;
    animation: borderGlow 3s ease-in-out infinite;
    z-index: -1;
}

.form__intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form__intro-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form__benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.benefit-icon {
    font-size: 1.5rem;
}

/* Form Wrapper */
.form__wrapper {
    padding: 3rem;
}

/* Form Sections */
.form__sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.section-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
}

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

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group label.required::after {
    content: ' *';
    color: var(--accent-pink);
}

/* Glass Input Styles */
.glass-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-standard);
    -webkit-backdrop-filter: var(--blur-standard);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.glass-input:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1),
                0 0 20px rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.glass-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.8;
}

/* Textarea specific */
textarea.glass-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Input Helper Text */
.input-helper {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* Submit Section */
.form-submit-section {
    text-align: center;
    padding-top: 3rem;
}

.button-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.form-disclaimer {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* Loading State */
.button.loading {
    position: relative;
    color: transparent;
}

.button.loading .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success Message */
.form-response {
    text-align: center;
    padding: 4rem;
}

.success-message {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    display: inline-block;
    margin-bottom: 2rem;
}

.success-icon .icon-glow {
    font-size: 4rem;
    filter: drop-shadow(0 0 30px var(--accent-green));
}

.success-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.success-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.success-details {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    text-align: left;
}

.success-details p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.success-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error Message */
.error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 0.9rem;
}

.error-message a {
    color: var(--accent-pink);
    text-decoration: underline;
}

/* Why CTA Section */
.why-cta {
    padding: 4rem 0;
    position: relative;
}

.why-cta__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.why-cta__content {
    padding: 3rem;
    text-align: center;
}

.why-cta__title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.why-cta__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    text-align: center;
}

.why-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px currentColor);
}

.why-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.why-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .form__intro-title {
        font-size: 2rem;
    }
    
    .form__intro-text {
        font-size: 1.1rem;
    }
    
    .form__benefits {
        gap: 1.5rem;
    }
    
    .form__wrapper {
        padding: 2rem 1.5rem;
    }
    
    .form-section__title {
        font-size: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .why-cta__content {
        padding: 3rem 2rem;
    }
    
    .why-cta__title {
        font-size: 2rem;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .success-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .form__intro-title {
        font-size: 1.75rem;
    }
    
    .form__wrapper {
        padding: 1.5rem 1rem;
    }
    
    .glass-input {
        padding: 0.875rem 1rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .button {
        width: 100%;
    }
}

/* ==================== Animation Enhancements ==================== */
.form-section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }
.form-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Visible for Accessibility */
.glass-input:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Custom Scrollbar for Textareas */
textarea.glass-input::-webkit-scrollbar {
    width: 8px;
}

textarea.glass-input::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

textarea.glass-input::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

textarea.glass-input::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}