/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.company-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.company-logo {
    width: 100px;
    height: auto;
    margin-right: 20px;
}

.company-details {
    flex-grow: 1;
}

.company-details h2 {
    margin: 0;
    font-size: 1.5rem;
}

.company-details p {
    margin: 5px 0;
    font-size: 1rem;
}

h1 {
    text-align: center;
}

.order-details {
    margin-bottom: 20px;
}

.order-details h2 {
    margin-top: 0;
}

.order-details table {
    width: 100%;
    border-collapse: collapse;
}

.order-details table th,
.order-details table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.order-details table th {
    background-color: #f4f4f4;
}

.payment-methods {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 20px;
}

.payment-card {
    text-align: center;
    cursor: pointer;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.1s;
    flex-basis: calc(18% - 10px); /* 4 cards in a row with small gaps */
    margin-bottom: 10px;
}

.payment-card:hover {
    border-color: #007bff;
}

.payment-card.selected {
    border-color: #007bff;
    background-color: #fff;
}

.payment-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.customer-details {
    margin-bottom: 20px;
}

.customer-details label {
    display: block;
    margin-bottom: 5px;
}

.customer-details input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.payment-form {
    border-top: 2px solid #ddd;
    padding-top: 20px;
}

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

.form-section h2 {
    margin-top: 0;
}

.form-section label {
    display: block;
    margin-bottom: 5px;
}

.form-section input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.submit-section {
    text-align: center;
    margin-top: 20px;
}

#submit-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#submit-btn:hover {
    background-color: #0056b3;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }

    .payment-card {
        flex-basis: 100%; /* Make cards full width */
        max-width: 400px;
        margin-bottom: 15px;
    }

    .company-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-details h2 {
        font-size: 1.2rem;
    }

    .company-details p {
        font-size: 0.9rem;
    }

    .order-details table th,
    .order-details table td {
        font-size: 0.9rem;
        padding: 6px;
    }

    .order-details table {
        font-size: 0.9rem;
    }
}

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

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .company-logo {
        width: 80px;
    }

    .order-details h2,
    .form-section h2 {
        font-size: 1.2rem;
    }

    .customer-details input,
    .form-section input {
        padding: 6px;
    }

    #submit-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}
