* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Arial", sans-serif;
    scroll-behavior: smooth;
}

body {
    color: #333;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
    background: #f7f7f7;
}

/* Header Styles */
header {
    background-color: transparent;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

header.scrolled {
    background: #000000;
}

header:hover {
    background: rgba(0, 0, 0, 0.2);
}

header::after {
    content: "";
    display: block;
    width: 90%;
    height: 4px;
    background-color: #f1c40f;
    position: absolute;
    bottom: 0;
}

.logo {
    margin-left: 150px;
}

.logo h1 {
    font-size: 28px;
    color: #f1c40f;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.logo p {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 300;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hamburger:hover {
    color: #f1c40f;
    transform: rotate(90deg);
}

.nav-menu {
    margin-right: 150px;
    transition: all 0.5s ease;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #f0c040;
}

/* Main Content Styles */
main {
    margin-top: -110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 150px 50px;
    min-height: calc(125vh - 300px);
    background: url("./assets/images/van.png") no-repeat center center/cover;
    background-attachment: fixed;
    background-color: #333;
    position: relative;
    z-index: 1;
    animation: backgroundCycle 20s infinite;
    background-size: cover;
    background-position: center;
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

@keyframes backgroundCycle {
    0% {
        background-image: url("assets/images/cars/van2.jpg");
    }
    15% {
        background-image: url("assets/images/cars/van1.jpg");
    }
    30% {
        background-image: url("assets/images/cars/van.jpg");
    }

    45% {
        background-image: url("assets/images/cars/van3.jpg");
    }
    
    100% {
        background-image: url("assets/images/cars/van4.jpg");
    }
}

.reservation-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 480px;
    margin-left: 7%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reservation-form:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.reservation-form h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
    font-weight: 600;
}

.vehicle-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 10px;
}

.vehicle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.vehicle-btn:hover {
    background: #f1c40f;
    color: white;
    transform: scale(1.05);
}

.vehicle-btn.active {
    background: #f1c40f;
    color: white;
    transform: scale(1.05);
}

.vehicle-img {
    margin: 0 0 8px 0;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f1c40f;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.3);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

.form-group input[readonly]:focus {
    border-color: #ddd;
    box-shadow: none;
}

#distance,
#duration,
#estimatedPrice {
    font-weight: bold;
    color: #333;
}

#estimatedPrice {
    font-size: 1.2em;
    color: #2ecc71;
}

.reserve-btn,
.contact-btn {
    width: 100%;
    padding: 15px;
    background: #f1c40f;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.reserve-btn:hover,
.contact-btn:hover {
    background: #e1b307;
    transform: scale(1.03);
}

.hero-text {
    color: white;
    text-align: right;
    max-width: 45%;
    animation: fadeIn 0.8s ease-out;
    left: 100px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-text h2 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
}

.hero-text p {
    font-size: 20px;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Call-to-Action Section Styles */
.call-to-action {
    background: #f1c40f;
    padding: 25px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-number .phone-icon {
    font-size: 26px;
    color: #1a1a1a;
}

.phone-number a {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-number a:hover {
    color: #333;
}

.cta-btn {
    padding: 12px 35px;
    background: white;
    border: 2px solid #1a1a1a;
    border-radius: 30px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background: #1a1a1a;
    color: white;
    transform: scale(1.05);
}

/* Services Section Styles */
.services {
    background: white;
    padding: 80px 50px;
    text-align: center;
}

.services h2 {
    font-size: 40px;
    margin-bottom: 50px;
    line-height: 1.2;
    color: #1a1a1a;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
}

.service-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.service-item .icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-item:hover .icon {
    transform: scale(1.15);
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #f1c40f;
    font-weight: 600;
}

.service-item p {
    font-size: 15px;
    color: #666;
}

/* Tariffs Section Styles */
.tariffs {
    background: #f7f7f7;
    padding: 80px 50px;
    text-align: center;
}

.tariffs h2 {
    font-size: 40px;
    margin-bottom: 50px;
    line-height: 1.2;
    color: #1a1a1a;
    font-weight: 600;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.tariff-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariff-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.tariff-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.tariff-item:hover img {
    transform: scale(1.05);
}

.tariff-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

.tariff-item p {
    font-size: 15px;
    color: #666;
}

/* Contact Section Styles */
.contact {
    background: white;
    padding: 80px 50px;
    text-align: center;
}

.contact h2 {
    font-size: 40px;
    margin-bottom: 50px;
    line-height: 1.2;
    color: #1a1a1a;
    font-weight: 600;
}

.contact-form {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 15px;
    max-width: 550px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.contact-info {
    margin-top: 30px;
}

.contact-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
}

.contact-info a {
    color: #f1c40f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #e1b307;
}

/* Footer Styles */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #f1c40f;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    font-size: 15px;
    color: white;
    text-decoration: none;
    margin-bottom: 15px;
    display: block;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-section a:hover {
    color: #f1c40f;
    transform: translateX(5px);
}

.partners {
    background: #f1c40f;
    padding: 20px;
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    border-radius: 10px;
}

.partners h3 {
    color: #1a1a1a;
    font-size: 22px;
    margin-bottom: 20px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.partners-logos img {
    height: 50px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    color: white;
    font-size: 22px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: #f1c40f;
    transform: translateY(-3px);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: #888;
}

/* Responsive Design */
@media (max-width: 1024px) {
    main {
        padding: 60px 40px;
    }

    .reservation-form {
        width: 400px;
    }

    .hero-text h2 {
        font-size: 44px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .services,
    .tariffs,
    .contact {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.8);
    }

    .logo {
        margin-left: 0;
    }

    .hamburger {
        display: block;
        font-size: 24px;
        padding: 5px;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        margin: 0;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    main {
        flex-direction: column;
        padding: 50px 20px;
        gap: 50px;
    }

    .reservation-form {
        width: 100%;
        max-width: 450px;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .call-to-action {
        padding: 20px;
    }

    .cta-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .phone-number {
        justify-content: center;
    }

    .phone-number a {
        font-size: 20px;
    }

    .cta-btn {
        padding: 10px 30px;
        font-size: 14px;
    }

    .services,
    .tariffs,
    .contact {
        padding: 50px 20px;
    }

    .service-item .icon {
        width: 60px;
        height: 60px;
    }

    .tariff-item img {
        height: 160px;
    }

    .contact-form {
        max-width: 100%;
    }

    footer {
        padding: 50px 20px;
    }

    .form-group input[readonly] {
        font-size: 14px;
        padding: 10px;
    }
    

    #estimatedPrice {
        font-size: 16px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo p {
        font-size: 12px;
    }

    .hamburger {
        font-size: 20px;
    }

    .nav-menu a {
        padding: 12px 15px;
        font-size: 16px;
    }

    main {
        padding: 40px 15px;
    }

    .reservation-form {
        padding: 30px;
    }

    .reservation-form h2 {
        font-size: 24px;
    }

    .vehicle-btn {
        padding: 10px;
        font-size: 12px;
    }

    .hero-text h2 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .call-to-action {
        padding: 15px;
    }

    .phone-number a {
        font-size: 18px;
    }

    .cta-btn {
        padding: 8px 25px;
        font-size: 13px;
    }

    .services,
    .tariffs,
    .contact {
        padding: 40px 15px;
    }

    .services h2,
    .tariffs h2,
    .contact h2 {
        font-size: 32px;
    }

    .service-item,
    .tariff-item {
        padding: 25px;
    }

    .tariff-item img {
        height: 140px;
    }

    footer {
        padding: 40px 15px;
    }

    .footer-section h3 {
        font-size: 20px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 14px;
    }

    .partners-logos img {
        height: 40px;
    }
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: #f1c40f;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-bottom: 20px;
}

.calculate-btn:hover {
    background: #e1b307;
    transform: scale(1.03);
}

.results-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rtl .error-message {
    text-align: right;
}
