/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Container - Mobile First with Desktop Centering */
.container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.main-content {
    padding: 20px;
    padding-bottom: 40px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 20px;
}

.header-emoji {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 16px;
    color: #718096;
    font-weight: 500;
}

/* Description Section */
.description {
    margin-bottom: 32px;
}

.description-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.description-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.5;
}

.description-text strong {
    color: #667eea;
}

.description-sub {
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
}

/* Form Section */
.form-section {
    space-y: 32px;
}

/* Input Group */
.input-group {
    margin-bottom: 32px;
}

.input-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.name-input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.name-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.name-input::placeholder {
    color: #a0aec0;
}

.input-error {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

/* Test Type Selection */
.test-type-group {
    margin-bottom: 32px;
}

.test-type-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    margin-bottom: 20px;
}

.test-type-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.test-type-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.test-type-btn:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.test-type-btn.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-emoji {
    font-size: 32px;
    margin-right: 16px;
    flex-shrink: 0;
}

.btn-content {
    flex: 1;
}

.btn-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.btn-desc {
    font-size: 13px;
    opacity: 0.8;
}

.test-type-btn.selected .btn-desc {
    opacity: 0.9;
}


/* Start Section */
.start-section {
    text-align: center;
    margin-bottom: 32px;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.start-btn:hover:not(:disabled) .btn-arrow {
    transform: translateX(4px);
}

.start-notice {
    font-size: 13px;
    color: #718096;
    margin-top: 12px;
}

/* Info Section Styles */
.info-section {
    margin: 32px 0;
}

.info-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e9ecef;
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    text-align: center;
}

.info-description {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: center;
}

.attachment-types-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.type-preview {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.type-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.type-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.type-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.type-desc {
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

.info-link-section {
    text-align: center;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.info-link:hover {
    gap: 12px;
    color: #5a67d8;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
}

.footer-link {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

.footer-link:hover {
    color: #4c51bf;
}

.footer-separator {
    color: #cbd5e0;
}

.footer-privacy {
    color: #a0aec0;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        max-width: 480px;
    }
    
    .main-content {
        padding: 32px;
    }
    
    .header-emoji {
        font-size: 56px;
    }
    
    .header-title {
        font-size: 32px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .container {
        max-width: 480px;
        min-height: auto;
        border-radius: 24px;
        overflow: hidden;
    }
    
    .main-content {
        padding: 40px;
    }
    
    .header-emoji {
        font-size: 64px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .header-emoji {
        animation: none;
    }
    
    .test-type-btn:hover,
    .start-btn:hover {
        transform: none;
    }
}

/* Focus Styles for Keyboard Navigation */
.test-type-btn:focus,
.start-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading State */
.start-btn.loading {
    pointer-events: none;
}

.start-btn.loading .btn-text {
    opacity: 0.7;
}

.start-btn.loading .btn-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}