/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: ltr;
}

.xh-ship-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switcher */
.xh-ship-language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 1000;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.xh-ship-lang-btn {
    padding: 6px 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.xh-ship-lang-btn:hover {
    border-color: #007bff;
}

.xh-ship-lang-active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Toast Notification */
.xh-ship-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
    font-weight: 500;
}

.xh-ship-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Hero Section */
.xh-ship-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.xh-ship-hero-content {
    max-width: 700px;
}

.xh-ship-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.xh-ship-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

.xh-ship-hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.xh-ship-hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
}

.xh-ship-hero-icon {
    font-size: 300px;
    color: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.xh-ship-btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.xh-ship-btn-primary {
    background: #007bff;
    color: white;
}

.xh-ship-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.xh-ship-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.xh-ship-btn-secondary:hover {
    background: white;
    color: #1a365d;
    transform: translateY(-2px);
}

.xh-ship-btn-outline {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.xh-ship-btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.xh-ship-btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* Section Common Styles */
.xh-ship-section-title {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 20px;
    text-align: center;
}

.xh-ship-section-desc {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Shipping Overview */
.xh-ship-overview {
    padding: 80px 0;
    background: white;
}

.xh-ship-services {
    margin: 60px 0;
}

.xh-ship-services-title, .xh-ship-methods-title {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 30px;
    text-align: center;
}

.xh-ship-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.xh-ship-service-card {
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.xh-ship-service-card:hover {
    transform: translateY(-5px);
    border-color: #007bff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.xh-ship-service-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.xh-ship-service-card h4 {
    color: #333;
    font-size: 1.1rem;
}

.xh-ship-methods-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.xh-ship-method-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.xh-ship-method-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.xh-ship-method-icon {
    color: #28a745;
    font-size: 1.2rem;
}

.xh-ship-methods-note {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Shipping Process */
.xh-ship-process {
    padding: 80px 0;
    background: #f8f9fa;
}

.xh-ship-process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.xh-ship-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.xh-ship-step-number {
    background: #007bff;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.xh-ship-step-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.xh-ship-step-content h3 {
    color: #1a365d;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.xh-ship-step-content ul {
    list-style: none;
}

.xh-ship-step-content li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.xh-ship-step-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* FAQ Section */
.xh-ship-faq {
    padding: 80px 0;
    background: white;
}

.xh-ship-faq-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.xh-ship-faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.xh-ship-faq-question {
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.xh-ship-faq-question:hover {
    background: #e9ecef;
}

.xh-ship-faq-icon {
    transition: transform 0.3s ease;
}

.xh-ship-faq-item.active .xh-ship-faq-icon {
    transform: rotate(180deg);
}

.xh-ship-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.xh-ship-faq-item.active .xh-ship-faq-answer {
    padding: 20px;
    max-height: 500px;
}

.xh-ship-faq-back {
    text-align: center;
}

/* Form Section */
.xh-ship-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.xh-ship-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.xh-ship-form-security {
    color: #28a745;
    font-weight: 500;
    margin-top: 10px;
    font-size: 1.1rem;
}

.xh-ship-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.xh-ship-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.xh-ship-form-group {
    margin-bottom: 25px;
}

.xh-ship-form-full {
    grid-column: 1 / -1;
}

.xh-ship-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.xh-ship-form-group input,
.xh-ship-form-group textarea,
.xh-ship-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.xh-ship-form-group input:focus,
.xh-ship-form-group textarea:focus,
.xh-ship-form-group select:focus {
    outline: none;
    border-color: #007bff;
}

.xh-ship-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.xh-ship-form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.xh-ship-form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.xh-ship-form-checkbox a {
    color: #007bff;
    text-decoration: none;
}

.xh-ship-form-checkbox a:hover {
    text-decoration: underline;
}

/* Error and Success Messages */
.xh-ship-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    min-height: 20px;
}

.xh-ship-success {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    display: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.xh-ship-success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.xh-ship-success h3 {
    color: #1a365d;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .xh-ship-hero-title {
        font-size: 2rem;
    }
    
    .xh-ship-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .xh-ship-hero-buttons {
        flex-direction: column;
    }
    
    .xh-ship-hero-image {
        display: none;
    }
    
    .xh-ship-hero {
        padding: 60px 0;
    }
    
    .xh-ship-section-title {
        font-size: 1.8rem;
    }
    
    .xh-ship-step {
        flex-direction: column;
        gap: 20px;
    }
    
    .xh-ship-step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .xh-ship-form {
        padding: 25px;
    }
    
    .xh-ship-form-grid {
        grid-template-columns: 1fr;
    }
    
    .xh-ship-language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .xh-ship-lang-btn {
        padding: 4px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .xh-ship-hero-title {
        font-size: 1.7rem;
    }
    
    .xh-ship-container {
        padding: 0 15px;
    }
    
    .xh-ship-services-grid {
        grid-template-columns: 1fr;
    }
    
    .xh-ship-methods-list {
        flex-direction: column;
        align-items: center;
    }
}

/* RTL Support */
[dir="rtl"] .xh-ship-language-switcher {
    right: auto;
    left: 20px;
}

[dir="rtl"] .xh-ship-toast {
    right: auto;
    left: 20px;
}

[dir="rtl"] .xh-ship-step-content li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .xh-ship-step-content li:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .xh-ship-faq-question {
    text-align: right;
}