/* 주문 페이지 전용 CSS */
/* CSS 버전: 1.0.2 */

.order-section {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 80vh;
}

/* 헤더 섹션 */
.order-header {
    max-width: 1600px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.order-header-box {
    position: relative;
    padding-bottom: 30px;
}

.order-title {
    font-size: 42px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* 서비스 프로세스 섹션 */
.process-section {
    max-width: 1600px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.process-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.process-intro {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 50px 0;
    text-align: center;
}

.process-flow {
    margin-bottom: 60px;
}

.process-flow:last-child {
    margin-bottom: 0;
}

.process-title {
    font-size: 28px;
    font-weight: 800;
    color: #0058a3;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #0058a3;
}

/* 플로우차트 */
.flowchart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
}

.flow-step {
    flex: 0 0 auto;
}

.flow-step-box {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 25px;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flow-step-box:hover {
    border-color: #0058a3;
    box-shadow: 0 4px 15px rgba(0, 88, 163, 0.15);
    transform: translateY(-3px);
}

.flow-step-box-highlight {
    background: linear-gradient(135deg, rgba(0, 88, 163, 0.05), rgba(0, 61, 122, 0.05));
    border-color: #0058a3;
    border-width: 3px;
}

.flow-step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0058a3, #003d7a);
    color: #ffffff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 5px;
}

.flow-step-box-highlight .flow-step-number {
    background: linear-gradient(135deg, #0058a3, #003d7a);
    box-shadow: 0 4px 10px rgba(0, 88, 163, 0.3);
}

.flow-step-text {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.flow-step-note {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #0058a3;
    margin-top: 5px;
    font-style: italic;
}

.flow-arrow {
    color: #0058a3;
    font-size: 24px;
    flex: 0 0 auto;
}

/* 신청 방법 섹션 */
.application-methods-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.application-methods-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.methods-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 20px 0;
}

.method-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.method-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.method-title {
    font-size: 24px;
    font-weight: 800;
    color: #0058a3;
    margin: 0 0 10px 0;
}

.method-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.5;
}

.method-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}

.method-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.method-button-primary {
    background: linear-gradient(135deg, #0058a3, #003d7a);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 88, 163, 0.3);
}

.method-button-primary:hover {
    background: linear-gradient(135deg, #003d7a, #002855);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 88, 163, 0.4);
}

.method-button-secondary {
    background: #ffffff;
    color: #0058a3;
    border: 2px solid #0058a3;
    box-shadow: 0 4px 15px rgba(0, 88, 163, 0.15);
}

.method-button-secondary:hover {
    background: #0058a3;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 88, 163, 0.3);
}

.method-button i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.method-button:hover i {
    transform: translateX(5px);
}

/* 컨테이너 선택 박스 */
.container-selection-box {
    border: 2px dashed #0058a3;
    border-radius: 16px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 88, 163, 0.02), rgba(0, 61, 122, 0.02));
    margin: 20px 0;
}

.container-selection-header {
    margin-bottom: 25px;
}

.container-selection-info {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.container-selection-instruction {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.container-selection-instruction:last-child {
    margin-bottom: 0;
}

/* 컨테이너 테이블 */
.container-table-wrapper {
    position: relative;
}

.container-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.container-table thead {
    background: linear-gradient(135deg, #0058a3, #003d7a);
    color: #ffffff;
}

.container-table th {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.container-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.container-table tbody tr:last-child {
    border-bottom: none;
}

.container-table td {
    padding: 20px;
    vertical-align: middle;
}

.container-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.container-image-placeholder {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0058a3;
    font-size: 24px;
}

.container-size {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.view-product-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #0058a3;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.view-product-btn:hover {
    background: #0058a3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 88, 163, 0.2);
}

.quantity-input {
    width: 100px;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #0058a3;
    box-shadow: 0 0 0 3px rgba(0, 88, 163, 0.1);
}

/* 행별 담기 버튼 (테이블 내) */
.fo-order-add-btn {
    padding: 10px 24px;
    background: #0058a3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fo-order-add-btn:hover {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 88, 163, 0.3);
}

/* field-office-order 전용 팝업 (smartsel.php와 무관) */
.fo-order-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
}

.fo-order-popup-overlay.active {
    display: flex;
}

.fo-order-popup-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.fo-order-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.fo-order-popup-close:hover {
    background: #e5e7eb;
}

.fo-order-popup-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fo-order-popup-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.fo-order-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fo-order-popup-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fo-order-popup-product-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.fo-order-popup-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fo-order-popup-quantity label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.fo-order-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fo-order-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fo-order-qty-btn:hover {
    background: #f3f4f6;
    border-color: #0058a3;
}

.fo-order-popup-qty-input {
    width: 64px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}

.fo-order-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fo-order-view-detail-btn {
    padding: 12px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.fo-order-view-detail-btn:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.fo-order-quote-cart-btn {
    width: 100%;
    padding: 15px;
    background: #0058a3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fo-order-quote-cart-btn:hover {
    background: #003d7a;
}

/* 담기 완료 팝업 */
.fo-order-success-popup-box {
    max-width: 400px;
}

.fo-order-success-content {
    text-align: center;
    padding: 20px 0 10px;
}

.fo-order-success-message {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.fo-order-success-question {
    font-size: 16px;
    color: #4a5568;
    margin: 0 0 24px 0;
}

.fo-order-success-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.fo-order-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fo-order-btn-primary {
    background: #0058a3;
    color: #ffffff;
}

.fo-order-btn-primary:hover {
    background: #003d7a;
}

.fo-order-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.fo-order-btn-secondary:hover {
    background: #e5e7eb;
}

/* 연락처 옵션 */
.contact-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #0058a3;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 88, 163, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
}

.contact-icon-phone {
    background: linear-gradient(135deg, #0058a3, #003d7a);
}

.contact-icon-board {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.contact-icon-kakao {
    background: linear-gradient(135deg, #fee500, #fdd835);
    color: #3c1e1e;
}

.contact-icon-email {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.contact-content {
    text-align: center;
}

.contact-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.contact-subtitle {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

/* 현장사무실 서비스 정보 바로가기 섹션 */
.field-office-quick-links-section {
    max-width: 1600px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.field-office-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.field-office-quick-link-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.field-office-quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 88, 163, 0.2);
    border-color: #0058a3;
}

.field-office-quick-link-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.field-office-quick-link-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.field-office-quick-link-card:hover .field-office-quick-link-img {
    transform: scale(1.1);
}

.field-office-quick-link-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 18px 15px;
    line-height: 1.5;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-office-quick-link-card:hover .field-office-quick-link-title {
    color: #0058a3;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .process-content {
        padding: 40px;
    }

    .flowchart {
        gap: 12px;
    }

    .flow-step-box {
        min-width: 160px;
        padding: 18px 20px;
    }

    .contact-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-office-quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .order-section {
        padding: 40px 0 80px;
    }

    .order-title {
        font-size: 32px;
    }

    .process-content {
        padding: 30px;
    }

    .process-title {
        font-size: 24px;
    }

    .flowchart {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .flow-step-box {
        min-width: auto;
        width: 100%;
    }

    .method-card {
        padding: 30px;
    }

    .method-title {
        font-size: 22px;
    }

    .container-selection-box {
        padding: 25px;
    }

    .contact-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-office-quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .order-title {
        font-size: 28px;
    }

    .process-content {
        padding: 25px;
    }

    .process-intro {
        font-size: 18px;
    }

    .process-title {
        font-size: 22px;
    }

    .flow-step-box {
        padding: 15px 18px;
    }

    .flow-step-text {
        font-size: 14px;
    }

    .method-card {
        padding: 25px;
    }

    .method-title {
        font-size: 20px;
    }

    .method-subtitle {
        font-size: 16px;
    }

    .method-description {
        font-size: 15px;
    }

    .method-button {
        padding: 16px 30px;
        font-size: 16px;
        width: 100%;
    }

    .container-selection-box {
        padding: 20px;
    }

    .container-table {
        font-size: 14px;
    }

    .container-table th,
    .container-table td {
        padding: 15px 12px;
    }

    .container-image-placeholder {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .container-size {
        font-size: 16px;
    }

    .quantity-input {
        width: 80px;
        padding: 8px 12px;
    }

    .add-to-cart-btn {
        position: static;
        width: 100%;
        margin-top: 20px;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .field-office-quick-links-grid {
        grid-template-columns: 1fr;
    }

    .field-office-quick-link-image {
        height: 160px;
    }

    .field-office-quick-link-title {
        font-size: 15px;
        padding: 15px 12px;
    }
}

@media (max-width: 576px) {
    .order-section {
        padding: 30px 0 60px;
    }

    .order-title {
        font-size: 24px;
    }

    .process-content {
        padding: 20px;
    }

    .process-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .process-flow {
        margin-bottom: 40px;
    }

    .process-title {
        font-size: 20px;
    }

    .flow-step-number {
        width: 28px;
        height: 28px;
        font-size: 16px;
        line-height: 28px;
    }

    .flow-step-text {
        font-size: 13px;
    }

    .flow-step-note {
        font-size: 12px;
    }

    .method-card {
        padding: 20px;
    }

    .method-title {
        font-size: 18px;
    }

    .method-subtitle {
        font-size: 15px;
    }

    .method-description {
        font-size: 14px;
    }

    .container-selection-info {
        font-size: 16px;
    }

    .container-selection-instruction {
        font-size: 14px;
    }

    .container-table {
        font-size: 13px;
    }

    .container-table th,
    .container-table td {
        padding: 12px 10px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .contact-title {
        font-size: 15px;
    }

    .contact-subtitle {
        font-size: 12px;
    }
}
