/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f2f2f2;
    font-family: 'Poppins', sans-serif;
}

/* Form Rate Styles */
.form-rate {
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.form-rate .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-rate .color {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f4c81, #1560bd, #3a0ca3);
    min-height: 400px;
}

.form-rate .image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.form-rate .form-container {
    font-family: 'Poppins', sans-serif;
    max-width: 90%;
    position: absolute !important;
    z-index: 1;
    padding: 46px 48px;
    background: #FFFFFF;
    box-shadow: 0 0 34px #0000000d;
    border-radius: 4px;
    top: 0;
    right: 0;
    left: 0;
    margin: 60px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-rate h2 {
    font-style: normal;
    font-weight: 600;
    font-size: 49px;
    line-height: 52px;
    color: #2a2a2a;
}

.form-rate .form-text {
    color: #434343;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 24px;
    margin-top: 16px;
    color: #6c757d;
    margin-bottom: 2rem;
}

.form-rate .form-label {
    font-weight: 500;
    font-size: 15px;
    color: #2a2a2a;
}

.form-rate .margin {
    margin-top: 25px;
}

.form-rate a {
    font-weight: 500;
    color: #003087;
}

.form-rate label {
    font-weight: 500;
    font-size: 16px;
    color: #2a2a2a;
}

.form-rate .form-control,
.form-rate .form-select {
    width: 100%;
    height: 44px;
    background: #ffffff;
    border: 1px solid #666666;
    border-radius: 4px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #333;
    padding-left: 10px;
}

.form-rate .form-control:focus,
.form-rate .form-select:focus {
    border: 2px solid #2d75e1;
    box-shadow: none;
}

.form-rate .form-check-input:checked {
    background-color: #003087;
    border-color: #f9fbff;
}

.form-rate .form-check-input:checked[type=radio] {
    --bs-form-check-bg-image: none;
}

.form-rate .sendingTo {
    border: 1px solid #666666;
    border-radius: 4px;
    padding: 10px;
    transition: all 0.5s ease-in-out;
}

.form-rate .size-box {
    display: flex;
    align-items: center;
}

.form-rate .size-input {
    flex: 1;
}

.form-rate .unit-select {
    width: 100%;
}

.form-rate .info-text {
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    font-size: 0.875rem;
    color: #6c757d;
}

.form-rate .info-text a {
    text-decoration: none;
    color: #003087;
}

.form-rate .envelope-option {
    width: 100%;
    border: 1px solid #666;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}

.form-rate .envelope-option:hover {
    cursor: pointer;
    border-color: #2d75e1;
    box-shadow: 0 0 4px #2d75e133;
    border-color: #0d6efd;
}

.form-rate .envelope-option input[type="radio"]:checked+label {
    color: #002d72;
}

.form-rate .form-check-label strong {
    font-size: 15px;
    color: #434343;
    font-weight: 600;
}

.form-rate .form-check-label small {
    color: #555;
    font-size: 13px;
}

.form-rate .btn-primary {
    background-color: #0345a9;
    border-color: #0345a9;
    border-radius: 25px;
    font-weight: 500;
    padding: 10px 40px;
}

.form-rate .btn-primary:hover {
    background-color: #001b76;
}

/* Track Page Styles */
.track .track-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #4835d4, #1a1a80);
}

.track .card {
    border-radius: 0px;
}

.track .card-body {
    background-color: #f5f5f5;
    padding: 20px;
}

.track .card-body p,
.track .card-body span,
.track .card-body a {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.track a {
    color: #0d6efd;
    transition: color 0.2s ease-in-out;
}

.track a:hover {
    color: #06214a;
}

.track .text-secondary {
    color: #6c757d !important;
}

.track .more-details {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.track .more-details i {
    color: #2a2a2a !important;
}

.track .more-details .bi::before {
    font-weight: 900 !important;
}

/* Responsive Styles */

/* Large tablets */
@media (max-width: 1200px) {
    .form-rate .form-container {
        margin: 40px auto;
        max-width: 85%;
    }
}

/* Tablets and small laptops */
@media (max-width: 992px) {
    .form-rate .form-container {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        margin: 20px auto;
    }

    .form-rate .image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .form-rate .color {
        display: none;
    }

    .form-rate .col-4,
    .form-rate .col-8 {
        width: 100%;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .form-rate {
        padding: 20px;
    }

    .form-rate .form-container {
        margin: 20px auto;
        padding: 25px 20px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        max-width: 100%;
        margin-top: -50px;
        padding: 1.5rem;
    }

    .form-rate h2 {
        font-size: 32px;
        line-height: 38px;
    }

    .form-rate .form-text {
        font-size: 13px;
        line-height: 20px;
    }

    .form-rate .margin {
        margin-top: 0px;
    }

    .form-rate .form-control,
    .form-rate .form-select {
        font-size: 14px;
        height: 40px;
    }

    .form-rate .btn-primary {
        width: 100%;
        padding: 12px 0;
        border-radius: 30px;
    }

    .form-rate .size-input {
        width: 100% !important;
        margin: 5px 0;
    }

    .form-rate .unit-select {
        width: 100%;
    }

    .color, .image {
        min-height: 200px;
    }
}

/* Very small devices */
@media (max-width: 480px) {
    .form-rate h2 {
        font-size: 26px;
        line-height: 32px;
    }

    .form-rate .form-text {
        font-size: 12px;
    }

    .form-rate .form-container {
        padding: 20px 15px;
    }

    .form-rate .btn-primary {
        font-size: 15px;
    }
}