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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 3rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="1"/></g></svg>') repeat;
    pointer-events: none;
}

.main-title {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.cta-button {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(56, 178, 172, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 178, 172, 0.4);
}

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

/* Main Content */
.main {
    padding: 0;
}

/* Contents Section */
.contents-section {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #38b2ac, #319795);
    border-radius: 2px;
}

.contents-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #38b2ac, #319795);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e6fffa, #b2f5ea);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #319795;
}

.card-title {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.card-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.contact-subtitle {
    text-align: center;
    color: #4a5568;
    font-weight: 400;
    margin-bottom: 3rem;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #38b2ac;
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

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

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #22543d;
}

.success-message h3 {
    color: #22543d;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #4a5568;
}

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    color: #a0aec0;
    font-size: 0.9rem;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 360px) {
    .container {
        padding: 0 16px;
    }
    
    .main-title {
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
}

@media (min-width: 421px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .contents-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .contact-form {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .header {
        padding: 4rem 0 5rem;
    }
    
    .contents-section,
    .contact-section {
        padding: 5rem 0;
    }
    
    .main-title {
        font-size: 2rem;
    }
}

/* Loading Animation */
.submit-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-button.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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