.shipping-calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    padding: 20px;
}

.shipping-calculator {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    padding: 30px;
    color: white;
    display: flex;
    gap: 30px;
    min-height: 400px;
}

.calculator-title {
    width: 100%;
    text-align: left;
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.calculator-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calculator-result {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    color: #333;
    height: fit-content;
}

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

.form-row.single {
    flex-direction: column;
    align-items: stretch;
}

.input-group {
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    flex: 1;
}

.weight-row {
    display: flex;
    gap: 10px;
}

.weight-input {
    flex: 2;
}

.weight-unit {
    flex: 1;
}

.dimensions-row {
    display: flex;
    gap: 10px;
}

.dimension-input {
    flex: 1;
}

.dimension-unit {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: none;
    font-size: 16px;
    background: white;
    color: #333;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3498db;
}

.form-control::placeholder {
    color: #999;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.country-select {
    width: 100%;
}

.calculate-button {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.calculate-button:hover {
    background: #2980b9;
}

.calculate-button:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.total-item {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #3498db;
    font-size: 18px;
    font-weight: bold;
}

.result-label {
    font-weight: 600;
    color: #555;
}

.result-value {
    font-weight: bold;
    color: #333;
}

.total-value {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.result-unit {
    margin-left: 5px;
    font-weight: normal;
    color: #666;
}

@media (max-width: 768px) {
    .shipping-calculator {
        flex-direction: column;
        padding: 20px;
    }
    
    .calculator-title {
        font-size: 24px;
        text-align: center;
    }
    
    .dimensions-row {
        flex-direction: column;
    }
    
    .weight-row {
        flex-direction: column;
    }
}

/* RTL Support */
[dir="rtl"] .calculator-title {
    text-align: right;
}

[dir="rtl"] select.form-control {
    background-position: left 12px center;
    padding-left: 40px;
    padding-right: 15px;
}
