.shipping-calc-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}

.shipping-calc-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.shipping-calc-header p {
    font-size: 16px;
    opacity: 0.9;
}

.shipping-calc-section {
    padding: 50px 0;
    background: #f5f7fa;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.calc-form-panel,
.calc-result-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

.shipping-calc-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.field-label {
    min-width: 140px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
}

.field-label .required {
    color: #e74c3c;
    margin-right: 4px;
}

.field-input-wrap {
    flex: 1;
    position: relative;
}

.field-input-wrap input[type="text"],
.field-input-wrap input[type="number"],
.field-input-wrap select {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.field-input-wrap input[type="text"]:focus,
.field-input-wrap input[type="number"]:focus,
.field-input-wrap select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field-input-wrap.with-unit input {
    padding-right: 45px;
}

.unit-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
}

.field-input-wrap.with-actions {
    display: flex;
    gap: 8px;
}

.field-input-wrap.with-actions input {
    flex: 1;
}

.toggle-btn {
    padding: 9px 14px;
    border: 1px solid #2563eb;
    background: #fff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: #2563eb;
    color: #fff;
}

.toggle-btn.clear-btn {
    border-color: #999;
    color: #666;
}

.toggle-btn.clear-btn:hover {
    background: #999;
    color: #fff;
}

.volume-fields {
    flex-wrap: wrap;
}

.volume-inputs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vol-input {
    flex: 1;
    position: relative;
}

.vol-input input {
    width: 100%;
    padding: 10px 35px 10px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.vol-input input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vol-multiply {
    color: #999;
    font-weight: 600;
    font-size: 16px;
}

.vol-hint {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    white-space: nowrap;
    min-width: 140px;
}

.goods-type-options {
    flex: 1;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.goods-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.goods-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-calc {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-reset {
    padding: 14px 24px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: #eee;
}

.calc-result-panel {
    display: flex;
    flex-direction: column;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.result-header h2 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.result-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 14px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

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

.service-result-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.service-result-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fb;
    border-bottom: 1px solid #e8e8e8;
}

.service-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-price {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
}

.service-card-body {
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.detail-label {
    color: #888;
    font-weight: 500;
}

.detail-value {
    color: #333;
    font-weight: 600;
}

.result-error {
    text-align: center;
    padding: 40px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
}

.services-info-section {
    padding: 50px 0;
    background: #fff;
}

.services-info-section h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-info-card {
    text-align: center;
    padding: 25px 20px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-info-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.service-info-card h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 8px;
}

.service-info-card p {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

.modal-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: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-picker-modal {
    max-width: 400px;
}

.country-picker-modal {
    max-width: 600px;
}

.country-search-wrap {
    margin-bottom: 12px;
}

.country-search-wrap input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.country-search-wrap input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.country-item {
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-align: center;
    transition: all 0.2s;
    user-select: none;
}

.country-item:hover {
    border-color: #2563eb;
    background: #f0f6ff;
}

.country-item.selected {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 17px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 15px 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.modal-footer .btn-calc,
.modal-footer .btn-reset {
    padding: 10px 24px;
    font-size: 14px;
    min-width: 90px;
}

.picker-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}

.picker-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.picker-item {
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.picker-item:hover {
    border-color: #2563eb;
    background: #f0f6ff;
}

.picker-item.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.picker-item-name {
    font-weight: 500;
    color: #333;
}

.picker-item-check {
    color: #2563eb;
    font-weight: 600;
}

@media (max-width: 900px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }

    .form-field-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .field-label {
        min-width: auto;
    }

    .result-summary {
        grid-template-columns: 1fr;
    }

    .service-card-body {
        grid-template-columns: 1fr;
    }

    .volume-inputs {
        flex-wrap: wrap;
    }

    .goods-type-options {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .shipping-calc-header {
        padding: 40px 0 30px;
    }

    .shipping-calc-header h1 {
        font-size: 26px;
    }

    .calc-form-panel,
    .calc-result-panel {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-calc,
    .btn-reset {
        width: 100%;
    }
}
