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

/* Performance Optimization */
html {
    scroll-behavior: smooth;
}

/* Prevent layout shift */
img, iframe, video {
    max-width: 100%;
    height: auto;
}

/* Improve font loading */
@font-face {
    font-family: 'Pretendard';
    font-display: swap;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 0 40px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.title {
    font-size: 34px;
    font-weight: 700;
    color: #191f28;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* 제목 첫 번째 줄 강조 */
.title-main {
    font-size: 36px;
    font-weight: 700;
    color: #191f28;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.title-sub {
    font-size: 28px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.subtitle {
    font-size: 16px;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.5;
}

/* Home Button - Top */
.home-btn {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background: #0050ff !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    z-index: 100 !important;
    display: inline-block !important;
    box-shadow: 0 2px 8px rgba(0, 80, 255, 0.3) !important;
}

.home-btn:hover {
    background: #0040d9 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 80, 255, 0.4) !important;
}

/* Bottom Home Section */
.bottom-home-section {
    text-align: left;
    padding: 24px 0;
    margin-top: 40px;
}

.bottom-home-btn {
    background: #0050ff !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-block !important;
    box-shadow: 0 2px 8px rgba(0, 80, 255, 0.3) !important;
}

.bottom-home-btn:hover {
    background: #0040d9 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 80, 255, 0.4) !important;
}

/* Blog Tips Button - Updated */
.blog-tips-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: #0050ff !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 24px !important;
    border-radius: 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(0, 80, 255, 0.3) !important;
    z-index: 100 !important;
    letter-spacing: -0.3px !important;
    display: inline-block !important;
}

.blog-tips-btn:hover {
    background: #0040d9 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 80, 255, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Intro Section */
.intro-section {
    margin-bottom: 40px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.intro-text {
    font-size: 15px;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 16px;
}

.intro-text:last-child {
    margin-bottom: 0;
}

/* Form Container */
.form-container {
    background: #ffffff;
}

/* Section */
.section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e9ecef;
}

.section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #191f28;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0050ff;
    display: inline-block;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #191f28;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Input Styles */
.input,
.textarea,
.select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #ffffff;
    transition: all 0.2s ease;
    color: #191f28;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: #0050ff;
    box-shadow: 0 0 0 3px rgba(0, 80, 255, 0.1);
}

.input::placeholder,
.textarea::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

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

.select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Final Notice */
.final-notice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0 0 0;
    text-align: center;
}

.notice-text {
    font-size: 15px;
    color: #495057;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 32px;
}

.submit-btn {
    background: #0050ff;
    color: #ffffff;
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: -0.3px;
    min-width: 160px;
}

.submit-btn:hover {
    background: #0040d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 80, 255, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 80, 255, 0.25);
}

.submit-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Privacy Notice */
.privacy-notice {
    margin-top: 16px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.privacy-link {
    color: #0050ff;
    text-decoration: none;
    font-weight: 500;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Loading State */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

.loading.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
        margin: 0;
    }
    
    .header {
        padding: 70px 0 24px 0;
        margin-bottom: 24px;
        position: relative;
    }
    
    .title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    /* 모바일용 제목 스타일 */
    .title-main {
        font-size: 26px;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .title-sub {
        font-size: 20px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .intro-section {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .intro-text {
        font-size: 14px;
    }
    
    .section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .input,
    .textarea,
    .select {
        padding: 12px 14px;
        font-size: 16px; /* iOS zoom prevention */
    }
    
    .final-notice {
        padding: 20px;
        margin: 24px 0 0 0;
    }
    
    .notice-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .submit-section {
        padding: 24px 0;
        margin-top: 20px;
    }
    
    .submit-btn {
        padding: 14px 32px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }
    
    .footer {
        margin-top: 40px;
        padding: 32px 0;
    }
    
    .footer-links {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-link {
        font-size: 15px;
    }
}

/* Focus indicators for accessibility */
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid #0050ff;
    outline-offset: 2px;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 60px;
    padding: 40px 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #0050ff;
    text-decoration: none;
}

.footer-text {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.5;
}

.footer-text p {
    margin: 4px 0;
}

/* Blog Tips Page Styles */
.blog-tips-article {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e9ecef;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #191f28;
    margin-bottom: 24px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.article-intro {
    font-size: 16px;
    color: #495057;
    line-height: 1.8;
    text-align: left;
    max-width: 100%;
    margin: 0 auto;
}

.tip-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f1f3f5;
}

.tip-section:last-of-type {
    border-bottom: none;
}

.tip-title {
    font-size: 22px;
    font-weight: 600;
    color: #191f28;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0050ff;
    display: inline-block;
}

.tip-content p {
    font-size: 15px;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 20px;
}

.tip-content p:last-child {
    margin-bottom: 0;
}

.conclusion-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
    margin: 48px 0;
    border: 1px solid #e9ecef;
}

.conclusion-title {
    font-size: 20px;
    font-weight: 600;
    color: #191f28;
    margin-bottom: 20px;
    text-align: center;
}

.conclusion-content p {
    font-size: 15px;
    color: #495057;
    line-height: 1.8;
    text-align: center;
    margin: 0;
}

.cta-section {
    margin-top: 48px;
}

.cta-box {
    background: linear-gradient(135deg, #0050ff 0%, #0040d9 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 80, 255, 0.2);
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.cta-text {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #0050ff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: #0040d9;
}

/* Responsive Design for Blog Tips */
@media (max-width: 768px) {
    .blog-tips-btn {
        top: 12px !important;
        right: 16px !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
        border-radius: 20px !important;
        position: fixed !important;
    }
    
    /* 모바일용 제목 스타일 */
    .title-main {
        font-size: 26px;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .title-sub {
        font-size: 20px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .article-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .article-intro {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .tip-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .tip-content p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    
    .conclusion-section {
        padding: 24px;
        margin: 32px 0;
    }
    
    .conclusion-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .conclusion-content p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .cta-box {
        padding: 32px 24px;
    }
    
    .cta-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .cta-text {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }
}

/* Services Section */
.services-section {
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.service-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 140px;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0050ff;
}



.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: #191f28;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.service-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsiveness for Services */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-item {
        padding: 16px;
        min-height: 120px;
    }
    
    /* 모바일용 제목 스타일 */
    .title-main {
        font-size: 26px;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .title-sub {
        font-size: 20px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .service-title {
        font-size: 16px;
    }
    
    .service-description {
        font-size: 12px;
    }
    
    .home-btn {
        top: 15px !important;
        left: 15px !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    
    .bottom-home-section {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .bottom-home-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .input,
    .textarea,
    .select {
        border-width: 2px;
    }
    
    .section-title {
        border-bottom-width: 3px;
    }
}
