:root {
    --primary-blue: #0066cc;
    --secondary-blue: #004d99;
    --accent-orange: #ff6600;
    --success-green: #00cc66;
    --danger-red: #ff3333;
    --dark-gray: #2c2c2c;
    --medium-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--light-gray);
    font-weight: 500;
}

/* 컨테이너 */
.container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
}

/* 헤더 섹션 */
.header-section {
    position: relative;
}

/* 네비게이션 고정 */
.header-section nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Noto Sans KR',  'Segoe UI', sans-serif;
}

.header-section nav > div:first-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.header-section nav .btn {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.header-section nav .btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* 메인 섹션 */
.main-section {
    margin-top: 80px; /* nav 고정으로 인한 여백 */
    padding: 0;
}

.container-img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.container-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


@keyframes floating {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, -10px) rotate(2deg); }
}

/* 왜 바다통신인가 섹션 */
.why-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    text-align: center;
}

.why-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
    position: relative;
}

.why-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.why-item {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.why-item:hover::before {
    transform: scaleX(1);
}

.why-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.why-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.why-item:hover .why-image {
    transform: scale(1.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.why-image img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: all 0.4s ease;
}



.why-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
}

.why-content p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.5;
    font-weight: 400;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .why-section {
        padding: 3rem 1rem;
    }

    .why-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }

    .why-item {
        padding: 1.5rem 1rem;
    }

    .why-image {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .why-image img {
        width: 40px;
        height: 40px;
    }

    .why-content h4 {
        font-size: 1.1rem;
    }

    .why-content p {
        font-size: 0.9rem;
    }
}

/* 상담신청 폼 */
.form-section {
    padding: 2rem 1.5rem;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.consultation-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-blue);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.telecom-select {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.telecom-option {
    position: relative;
    flex: 1;
    max-width: 120px;
}

.telecom-option input[type="radio"] {
    width: auto;
    margin: 0;
    position: absolute;
    opacity: 0;
}

.telecom-option label {
    display: block;
    padding: 1rem;
    background: var(--white);
    border: 3px solid #e1e1e1;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.telecom-option label img {
    width: 60px;
    height: auto;
    object-fit: contain;
    max-height: 50px;
}

.telecom-option input[type="radio"]:checked + label {
    background: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-3px);
}

.telecom-option input[type="radio"]:disabled + label {
    background: #f0f0f0;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.telecom-option input[type="radio"]:disabled + label img {
    opacity: 0.5;
    filter: grayscale(100%);
}

.error-message {
    color: var(--danger-red);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #3e5fff 0%, #3549ff 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

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

/* 실시간 신청현황 */
.status-section {
    padding: 2rem 1.5rem;
    background-image: url("img/section4.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 865px;
    position: relative;
}

.status-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.status-list {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    z-index: 5;
}

.status-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.status-container {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.status-scroll {
    display: flex;
    flex-direction: column;
    animation: scrollUp 60s linear infinite;
}

.status-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.status-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
    min-height: 60px;
}

.status-item:hover {
    background: rgba(0, 102, 204, 0.05);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.status-complete {
    background: var(--success-green);
    color: var(--white);
}

.status-processing {
    background: var(--accent-orange);
    color: var(--white);
}

/* 회사정보 푸터 */
.footer-section {
    background: var(--dark-gray);
    color: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
}

.company-info {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

.company-info strong {
    color: var(--accent-orange);
}

/* 애니메이션 */
@keyframes float {
    0% { transform: translateX(0px) rotate(0deg); }
    33% { transform: translateX(30px) rotate(120deg); }
    66% { transform: translateX(-20px) rotate(240deg); }
    100% { transform: translateX(0px) rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }

    /* 네비게이션 모바일 */
    .header-section nav {
        padding: 0.8rem 1rem;
        max-width: 100%;
    }

    .header-section nav > div:first-child {
        font-size: 1.3rem;
    }

    .header-section nav .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* 메인 섹션 모바일 */
    .main-section {
        margin-top: 70px;
    }

    .container-img {
        padding: 0 0.5rem;
    }

    /* hugi 섹션 모바일 */
    .hugi-section div {
        padding: 0 0.5rem;
    }

    /* counter styles removed - replaced by other design */

    .telecom-select {
        flex-direction: column;
        gap: 0.8rem;
    }

    .telecom-option {
        max-width: 100%;
    }

    .telecom-option label {
        height: 70px;
    }

    .telecom-option label img {
        width: 50px;
        max-height: 40px;
    }

    .status-container {
        height: 300px;
    }
    .status-section{
        min-height: 650px;
    }

    .status-header,
    .status-item {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 0.5rem;
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .status-header .hide-mobile,
    .status-item .hide-mobile {
        display: none;
    }

    /* 폼 섹션 모바일 */
    .form-section {
        padding: 1.5rem 1rem;
    }

    .consultation-form {
        padding: 1.5rem;
    }
}

/* 태블릿 반응형 */
@media (max-width: 768px) and (min-width: 481px) {
    .container {
        max-width: 100%;
        margin: 0 1rem;
    }

    .header-section nav {
        max-width: calc(100% - 2rem);
    }

    .main-section {
        margin-top: 75px;
    }

    .container-img {
        padding: 0 1rem;
    }

    /* hugi 섹션 태블릿 */
    .hugi-section div {
        padding: 0 1rem;
    }

    /* counter styles removed for tablet view */

    .telecom-select {
        gap: 0.8rem;
    }

    .telecom-option {
        max-width: 110px;
    }
}

/* 로딩 애니메이션 */
.loading {
    display: none;
    text-align: center;
    padding: 1rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* hugi 섹션 */
.hugi-section {
    padding: 0;
    background: var(--white);
}

.hugi-section div {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hugi-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 성공 메시지 */
.success-message {
    display: none;
    background: var(--success-green);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}