/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #333;
}

/* Main Container */
.main-container {
    width: 100%;
    overflow-x: hidden;
}

/* Apply Form Section */
.apply-form-section {
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
}

.form-image {
    flex: 1;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

/* Image Gallery Styles */
.mail-gallery {
    width: 100%;
    max-width: 450px;
}

.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 비율 (정사각형) */
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 12px;
}

.gallery-slide.active {
    opacity: 1;
}

/* 화살표 버튼 */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.gallery-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

/* 인디케이터 (점) */
.gallery-indicators {
    text-align: center;
    padding: 15px 0;
}

.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator:hover {
    background-color: #999;
    transform: scale(1.2);
}

.indicator.active {
    background-color: #1A2D4F;
    transform: scale(1.2);
}

.form-container {
    flex: 1;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a3353;
    margin-bottom: 16px;
}

.form-container h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1A2D4F;
    margin-bottom: 20px;
}

.form-description {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.form-description .highlight {
    color: #1A2D4F;
}

.form-notice {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin: 20px 0;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-input,
.form-select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #1a3353;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1A2D4F;
}

.radio-option span {
    font-weight: 500;
}

/* Checkbox Button Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-option:hover {
    background-color: #f8f9fa;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1A2D4F;
}

.checkbox-option span {
    font-weight: 500;
}

/* Custom Select (Multiple) Styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.custom-select.open {
    border-color: #1a3353;
}

.selected-text {
    color: #333;
    flex: 1;
}

.select-arrow {
    color: #333;
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.custom-options {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: #f8f9fa;
}

.custom-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    position: relative;
    background: transparent;
    border: none;
}

.custom-option input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.custom-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #1A2D4F;
    font-size: 18px;
    font-weight: bold;
}

.custom-option span {
    font-weight: 400;
    user-select: none;
}

.submit-btn {
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a3353;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #2d5a8c;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: rgba(26, 51, 83, 0.05);
    border: 2px dashed rgba(26, 51, 83, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(26, 51, 83, 0.4);
    font-size: 16px;
}

/* Section Common Styles */
section {
    padding: 60px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background-color: #f0f4f8;
    border: 2px dashed #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.section-icon-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.section-icon-center {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background-color: #f0f4f8;
    border: 2px dashed #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1A2D4F;
}

.section-title-center {
    font-size: 28px;
    font-weight: 700;
    color: #1A2D4F;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle-center {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

/* Storage Section */
.storage-section {
    background-color: #ffffff;
}

.storage-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.storage-item {
    display: flex;
    align-items: flex-start;
    text-align: center;
    gap: 15px;
    width: 100%;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;

}

.storage-item .highlight{
    color: #1A2D4F;
}

.check-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    object-fit: contain;
}

.storage-description {
    font-size: 17px;
    font-weight: 600;
    color: #1A2D4F;
    line-height: 1.6;
    flex: 1;
}

/* Info Section */
.info-section {
    background-color: #ffffff;
    text-align: center;
}

.info-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a3353;
    margin-bottom: 12px;
}

.info-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-description {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.info-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.info-image-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

.info-image .image-placeholder {
    height: 400px;
}

/* Delivery Section */
.delivery-section {
    text-align: center;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.delivery-item {
    background-color: #ffffff;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.delivery-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background-color: #f0f4f8;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.delivery-map {
    max-width: 800px;
    margin: 40px auto 0;
}

.delivery-map-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Mail Management Box */
.mail-management-box {
    max-width: 800px;
    margin: 40px auto;
    background-color: #e8f0fb;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.management-icon-wrapper {
    flex-shrink: 0;
}

.management-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.management-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.management-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brown-check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.management-feature-item p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: left;
    line-height: 1.5;
}

.management-feature-item .bullet {
    margin: 0 4px;
}

/* Service Checklist */
.service-checklist {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: #1A2D4F;
    background-color: #f8f9fa;
}

.checklist-item .check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.checklist-item p {
    font-size: 16px;
    font-weight: 600;
    color: #1A2D4F;
    text-align: left;
    line-height: 1.5;
}

/* Security Section */
.security-section {
    background-color: #ffffff;
    color: #333;
    text-align: center;
    padding: 80px 40px;
}

.security-header {
    margin-bottom: 40px;
}

.security-icon-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.security-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #1A2D4F;
    margin: 0 0 8px 0;
}

.security-section .section-title-center {
    color: #1A2D4F;
    margin-bottom: 0;
}

.security-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 0;
    overflow: hidden;
}

.security-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.security-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.security-description {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

.security-description .highlight {
    color: #1A2D4F;
    font-weight: 600;
}

/* Custom Service Section */
.custom-service-section {
    background-color: #ffffff;
    text-align: center;
    padding: 80px 40px;
}

.custom-service-header {
    margin-bottom: 50px;
}

.custom-service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.custom-service-title {
    font-size: 32px;
    font-weight: 700;
    color: #1A2D4F;
    margin-bottom: 12px;
}

.custom-service-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.service-card-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: contain;
}

.service-card-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.8;
    text-align: left;
}

.service-card-text .highlight {
    color: #1A2D4F;
    font-weight: 700;
}

/* Proxy Service Section */
.proxy-service-section {
    background-color: #F0F1F4;
    padding: 80px 40px;
}

.proxy-service-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: left;
}

.proxy-service-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.proxy-service-subtitle-blue {
    font-size: 32px;
    font-weight: 700;
    color: #1A2D4F;
    margin: 0 0 20px 0;
}

.proxy-service-divider {
    border: none;
    border-top: 2px solid #333;
    margin: 20px 0 0 0;
}

.proxy-service-content {
    max-width: 1200px;
    margin: 0 auto;
}

.proxy-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.proxy-service-list li {
    font-size: 17px;
    font-weight: 400;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    padding-left: 0;
}

.proxy-service-list li:last-child {
    margin-bottom: 0;
}

.list-number {
    font-weight: 700;
    color: #333;
}

.list-indent {
    display: inline-block;
    padding-left: 20px;
}

.list-sub-item {
    font-size: 14px;
    color: #1A2D4F;
    margin: 8px 0 0 20px;
    line-height: 1.6;
}

.proxy-service-list .highlight {
    color: #1A2D4F;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }

    .header-left {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-menu {
        gap: 20px;
    }

    .apply-form-section {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    /* Form Container - Mobile */
    .form-container {
        max-width: 100%;
        padding: 30px 20px;
    }

    /* Form Image - Mobile */
    .form-image {
        max-width: 100%;
        width: 100%;
    }

    /* Gallery - Mobile */
    .mail-gallery {
        max-width: 100%;
        width: 100%;
    }

    .gallery-btn {
        font-size: 16px;
        padding: 6px 10px;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

    .indicator {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    section {
        padding: 40px 20px;
    }

    .storage-list {
        flex-direction: column;
        gap: 20px;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
    }

    /* Custom Service Section - Mobile */
    .custom-service-section {
        padding: 60px 20px;
    }

    .custom-service-icon {
        width: 80px;
        height: 80px;
    }

    .custom-service-title {
        font-size: 24px;
    }

    .custom-service-subtitle {
        font-size: 16px;
    }

    .service-card {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        text-align: center;
    }

    .service-card-icon {
        width: 80px;
        height: 80px;
    }

    .service-card-text {
        font-size: 16px;
        text-align: center;
    }

    /* Mail Management Box - Mobile */
    .mail-management-box {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .management-icon {
        width: 100px;
        height: 100px;
    }

    .management-features {
        width: 100%;
    }

    .management-feature-item {
        justify-content: flex-start;
    }

    .management-feature-item p {
        font-size: 14px;
    }

    /* Service Checklist - Mobile */
    .service-checklist {
        gap: 12px;
    }

    .checklist-item {
        padding: 14px 16px;
    }

    .checklist-item p {
        font-size: 14px;
    }

    /* Security Section - Mobile */
    .security-section {
        padding: 60px 20px;
    }

    .security-icon-img {
        width: 60px;
        height: 60px;
    }

    .security-subtitle {
        font-size: 16px;
    }

    .security-section .section-title-center {
        font-size: 24px;
    }

    .security-description {
        font-size: 16px;
    }

    /* Proxy Service Section - Mobile */
    .proxy-service-section {
        padding: 60px 20px;
    }

    .proxy-service-title {
        font-size: 24px;
    }

    .proxy-service-subtitle-blue {
        font-size: 24px;
    }

    .proxy-service-list li {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .list-sub-item {
        font-size: 12px;
        margin-left: 10px;
    }

    .list-indent {
        padding-left: 10px;
    }
}

/* 초소형 모바일 (Z폴드 외부 화면) */
@media (max-width: 400px) {
    .apply-form-section {
        padding: 30px 10px;
    }

    .form-container {
        padding: 20px 10px;
        max-width: 100%;
    }

    .form-title {
        font-size: 22px;
    }

    .form-description {
        font-size: 13px;
    }

    .apply-form {
        gap: 15px;
    }

    .form-group {
        gap: 6px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-input,
    .form-select {
        padding: 10px 12px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .radio-group {
        gap: 8px;
        flex-wrap: wrap;
    }

    .radio-option {
        font-size: 13px;
    }

    .checkbox-option {
        font-size: 13px;
        padding: 6px 10px;
    }

    .custom-options-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .custom-option {
        padding: 10px 12px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .delivery-grid {
        gap: 15px;
    }

    .delivery-item {
        padding: 15px 10px;
    }

    .delivery-step {
        font-size: 13px;
    }

    .delivery-title {
        font-size: 15px;
    }

    .delivery-description {
        font-size: 12px;
    }

    section {
        padding: 30px 10px;
    }

    .section-title-center {
        font-size: 20px;
    }

    .gallery-btn {
        font-size: 14px;
        padding: 5px 8px;
    }

    .custom-service-section {
        padding: 40px 10px;
    }

    .custom-service-title {
        font-size: 20px;
    }

    .custom-service-subtitle {
        font-size: 14px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-card-text {
        font-size: 14px;
    }

    .mail-management-box {
        padding: 20px 15px;
    }

    .management-features h3 {
        font-size: 16px;
    }

    .management-feature-item p {
        font-size: 13px;
    }

    .checklist-item {
        padding: 12px 12px;
    }

    .checklist-item p {
        font-size: 13px;
    }

    .security-section {
        padding: 40px 10px;
    }

    .security-section .section-title-center {
        font-size: 20px;
    }

    .security-description {
        font-size: 14px;
    }

    .proxy-service-section {
        padding: 40px 10px;
    }

    .proxy-service-title {
        font-size: 20px;
    }

    .proxy-service-subtitle-blue {
        font-size: 20px;
    }

    .proxy-service-list li {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .list-sub-item {
        font-size: 11px;
    }
}