/* Menu Hover Effect */
.nav ul li a {
    position: relative;
    padding: 8px 0;
}

.nav ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav ul li a:hover::before {
    visibility: visible;
    width: 100%;
}

/* Shipping Calculator Styles */
.shipping-calculator {
    padding: 120px 0 80px;
    background-color: #f8f9fa;
}

.section-description {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    font-size: 1.1rem;
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.calculator-form {
    flex: 1;
    min-width: 300px;
}

.calculator-results {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    position: relative;
}

.calculator-results h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 120px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 183, 234, 0.2);
}

small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-calculate, .btn-reset {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-calculate:hover {
    background-color: #1e3a7d;
    transform: translateY(-2px);
}

.btn-reset {
    background-color: #e9ecef;
    color: #495057;
    flex: 1;
}

.btn-reset:hover {
    background-color: #dee2e6;
}

/* Results Styling */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.shipping-option {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.shipping-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.carrier-logo {
    height: 30px;
    margin-right: 15px;
}

.service-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.option-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    color: #666;
}

.detail-value {
    font-weight: 500;
}

.price {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.shipping-note {
    background-color: #e8f4f8;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 0 6px 6px 0;
    margin-top: 20px;
}

.shipping-note p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.shipping-note i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Loading and Error States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.error-message {
    background-color: #ffe8e8;
    border-left: 4px solid #ff5252;
    padding: 15px;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
}

.error-message i {
    color: #ff5252;
    font-size: 1.2rem;
    margin-right: 10px;
}

.hidden {
    display: none;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.map-container {
    width: 100%;
    margin-top: 20px;
}

.google-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.google-map iframe {
    display: block;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-calculate, .btn-reset {
        width: 100%;
    }
    
    .shipping-calculator {
        padding: 100px 0 60px;
    }
    
    .map-container {
        margin-top: 30px;
    }
    
    .google-map iframe {
        height: 350px;
    }
}

/* Input Mask Styling */
input.masked {
    letter-spacing: 1px;
}

/* Package Type Presets */
.dimensions.hidden {
    display: none;
}

/* Active Navigation Link */
.nav ul li a.active {
    color: var(--accent-color);
    font-weight: 500;
}