:root {
    --primary-color: #005baa;
    --secondary-color: #00A54D;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --accent-color: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 텍스트 렌더링 최적화 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    /* 텍스트 렌더링 최적화 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-smooth: always;
}

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

/* 헤더 스타일 */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px;
}

.text-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.university-name {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.center-name {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* 히어로 섹션 스타일 */
.hero {
    background: linear-gradient(90deg, 
        var(--primary-color) 0%,
        var(--primary-color) 50%,
        var(--secondary-color) 50%,
        var(--secondary-color) 100%
    );
    color: var(--white);
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
}

.hero::before {
    display: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--white);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    white-space: nowrap;
    overflow: visible;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 서비스 섹션 스타일 */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    min-height: 450px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 0;
}

.service-details {
    list-style: none;
    text-align: left;
    margin-top: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 0;
}

.service-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

/* 시설 섹션 스타일 */
.facilities {
    padding: 100px 0;
    background-color: var(--white);
}

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

.facility-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid #eee;
}

.facility-card:hover {
    border-color: var(--primary-color);
}

.facility-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.facility-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.facility-card p {
    color: #666;
}

/* 이용안내 섹션 스타일 */
.guide {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.guide h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.guide h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

.guide-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.guide-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.guide-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.guide-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.guide-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: auto;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.2rem;
}

.guide-card ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.guide-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

.kakao-link {
    display: inline;
    background: none;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
}

.kakao-link:hover {
    background-color: #FDD835;
}

/* 서비스 신청 섹션 스타일 */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
    cursor: pointer;
}

.form-group select {
    cursor: pointer;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--secondary-color);
}

/* 모든 체크박스에 초록색 적용 */
input[type="checkbox"] {
    accent-color: var(--secondary-color);
}

/* 체크박스 커스텀 스타일 (브라우저 호환성을 위해) */
input[type="checkbox"]:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.checkbox-label span {
    font-size: 0.9rem;
    color: #666;
}

optgroup {
    font-weight: 600;
    color: var(--secondary-color);
}

option {
    font-weight: normal;
    color: var(--text-color);
    padding: 0.5rem;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.contact-form .btn:hover {
    background-color: var(--secondary-color);
}

/* 반응형 스타일 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        text-align: center;
        padding: 1rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 35vh;
        padding: 40px 20px;
        background: linear-gradient(90deg, 
            var(--secondary-color) 0%,
            var(--secondary-color) 50%,
            var(--primary-color) 50%,
            var(--primary-color) 100%
        );
        margin-top: 60px;
    }

    .hero-content {
        padding: 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        word-break: keep-all;
    }

    /* 모바일에서 히어로 섹션 텍스트 개별 스타일링 */
    .hero-title-line1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem !important;
        white-space: nowrap !important;
        font-weight: 700 !important;
        color: var(--white) !important;
    }
    
    .hero-title-line2 {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        white-space: nowrap !important;
        font-weight: 600 !important;
        color: var(--white) !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        white-space: normal !important;
        word-break: keep-all !important;
        padding: 0 20px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin: 0 !important;
        color: var(--white) !important;
    }

    .hero p {
        font-size: 1rem;
        white-space: normal !important;
        word-break: keep-all;
        padding: 0 20px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .header {
        padding: 5px 0;
    }

    .logo-image {
        height: 30px;
    }

    .university-name {
        font-size: 14px;
    }

    .center-name {
        font-size: 12px;
    }

    .showcase-slider {
        height: 400px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        justify-items: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .service-card {
        padding: 2rem;
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }

    .service-card p {
        min-height: auto;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
        padding: 0 1rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .guide-card {
        padding: 1.5rem;
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .guide-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0 1rem;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* 염색 이미지 슬라이더 스타일 */
.staining-showcase {
    padding: 0;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 45vh;
    display: flex;
    align-items: center;
}

.staining-showcase .container {
    max-width: 100%;
    padding: 0;
    height: 100%;
}

.showcase-slider {
    position: relative;
    width: 100%;
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.showcase-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    gap: 0;
    padding: 0;
}

.showcase-slide {
    min-width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-slide[data-type="fluorescence"] {
    background-color: #000;
}

.showcase-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    text-align: center;
    z-index: 2;
}

.showcase-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.showcase-caption p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.showcase-nav-buttons {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.showcase-nav {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.showcase-nav:hover {
    background: var(--white);
}

.showcase-dots {
    display: flex;
    gap: 8px;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.showcase-dot.active {
    background: var(--white);
}

@media (max-width: 768px) {
    .showcase-slide {
        min-width: 100%;
    }
    
    .showcase-nav {
        width: 36px;
        height: 36px;
    }
    
    .showcase-caption h3 {
        font-size: 1.2rem;
    }
    
    .showcase-caption p {
        font-size: 0.9rem;
    }
}

.count-group {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.count-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.selected-service-info {
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.info-row span {
    padding: 12px;
    text-align: center;
    font-weight: 500;
    color: #1a365d;
}

#selected-services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: white;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item span {
    padding: 12px;
    text-align: center;
    color: #2d3748;
}

.service-item .remove-service {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #e53e3e;
    padding: 4px;
    border: none;
    background: none;
    font-size: 16px;
}

.service-item .remove-service:hover {
    color: #c53030;
}

@media (max-width: 768px) {
    .info-row,
    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .info-row span,
    .service-item span {
        border-bottom: 1px solid #e2e8f0;
        text-align: center;
    }

    .info-row span:last-child,
    .service-item span:last-child {
        border-bottom: none;
    }

    .service-item .remove-service {
        right: 8px;
        top: 8px;
        transform: none;
    }
    
    .container {
        text-align: center;
    }
    
    .contact-form {
        text-align: left;
    }
    
    /* 가로 스크롤 방지 */
    body {
        overflow-x: hidden;
    }
    
    .contact {
        overflow-x: hidden;
    }
    
    .guide {
        text-align: center;
    }
    
    .guide .container {
        padding: 0 1rem;
    }
    
    /* 분석신청 테이블 모바일 정렬 */
    .services-table {
        margin: 20px auto;
        max-width: 350px;
        width: calc(100% - 40px);
        overflow-x: hidden;
        display: block;
    }
    
    .services-table thead {
        display: none;
    }
    
    .services-table tbody {
        display: block;
    }
    
    .services-table tr {
        display: block;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .services-table tr.current-service {
        background-color: #f0f8ff;
        border-color: #2c5282;
    }
    
    .services-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border: none;
        font-size: 14px;
        position: relative;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .services-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #2c5282;
        flex: 0 0 auto;
        margin-right: 10px;
        white-space: nowrap;
        min-width: 80px;
    }
    
    .services-table td:nth-child(6) {
        justify-content: center;
        padding-top: 15px;
    }
    
    .services-table td:nth-child(6):before {
        display: none;
    }
    
    .services-table .remove-service {
        background-color: #dc3545;
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .services-table .remove-service:hover {
        background-color: #c82333;
    }
    
    /* 모바일 테이블 정렬 개선 */
    .services-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border: none;
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        position: relative;
        min-height: 24px;
    }
    
    .services-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #2c5282;
        text-align: left;
        white-space: nowrap;
        flex: 0 0 90px;
        margin-right: 10px;
    }
    
    /* 숫자 값들 한 줄 표시 */
    .services-table td[data-label="검체 수"],
    .services-table td[data-label="슬라이드 수"],
    .services-table td[data-label="의뢰 총수량"] {
        white-space: nowrap !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        min-height: 20px;
        font-weight: 600 !important;
        color: #2c5282 !important;
        text-align: right !important;
    }
    

    
    .services-table td[data-label="검체 수"]:before,
    .services-table td[data-label="슬라이드 수"]:before,
    .services-table td[data-label="의뢰 총수량"]:before {
        white-space: nowrap !important;
        flex: 0 0 auto;
    }
    

    
    .services-table td[data-label="세부 분석"] {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-overflow: unset !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 60px !important;
        line-height: 1.5;
        padding: 8px 0 15px 0;
        flex-direction: column !important;
        align-items: stretch !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .services-table td[data-label="세부 분석"]:before {
        margin-bottom: 6px !important;
        flex: none !important;
        width: auto !important;
    }
    
    /* 세부 분석 텍스트 내용 스타일 */
    .services-table td[data-label="세부 분석"] {
        font-size: 13px !important;
        color: #333 !important;
        text-align: left !important;
        hyphens: auto;
        word-break: break-word;
    }
    

    

    
    .button-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-form {
        text-align: center;
    }
    
    .contact-form .form-row {
        justify-content: center;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form label {
        text-align: center;
    }
    
    .contact-form .form-row {
        overflow-x: hidden;
    }
    
    .contact-form .form-group {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
        max-width: 100%;
        margin: 0 auto;
        justify-items: center;
    }
    
    .guide-card {
        padding: 1rem;
        max-width: 350px;
        width: 100%;
        margin: 0 auto;
    }
    
    /* 분석신청 폼 작은 화면 최적화 */
    .services-table {
        max-width: 320px;
        width: calc(100% - 30px);
    }
    
    .services-table tr {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .services-table td {
        font-size: 13px;
        padding: 6px 0;
    }
    
    .services-table td:before {
        font-size: 13px;
    }
    
    .services-table .remove-service {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .contact-form .form-row {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form .form-group {
        max-width: 300px;
        width: 100%;
    }
}

.button-group {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #1a365d;
    border: 1px solid #cbd5e0;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.selected-services-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.service-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: white;
    padding: 12px;
    position: relative;
}

.service-item span {
    text-align: center;
}

.service-item .remove-service {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #e53e3e;
    padding: 4px;
    border-radius: 4px;
}

.service-item .remove-service:hover {
    background-color: #fed7d7;
}

/* 테이블 스타일 */
.services-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    table-layout: fixed;
}

.services-table th,
.services-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    font-size: 14px;
}

.services-table th:nth-child(1),
.services-table td:nth-child(1) {
    width: 100px;
    text-align: center;
}

.services-table th:nth-child(2),
.services-table td:nth-child(2) {
    width: 280px;
}

.services-table th:nth-child(3),
.services-table td:nth-child(3) {
    width: 500px;
}

.services-table th:nth-child(4),
.services-table td:nth-child(4) {
    width: 220px;
    text-align: center;
}

.services-table th:nth-child(5),
.services-table td:nth-child(5) {
    width: 120px;
    text-align: center;
}

.services-table th:nth-child(6),
.services-table td:nth-child(6) {
    width: 80px;
    text-align: center;
}

.services-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.services-table tr:hover {
    background-color: #f5f5f5;
}

.services-table tr.current-service {
    background-color: #e3f2fd;
    font-style: italic;
}

.services-table .remove-service {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
}

.services-table .remove-service:hover {
    background-color: #fed7d7;
    color: #c53030;
}

/* 추가 폼 스타일 */
.additional-service-form {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8f9fa;
}

 