body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f4f7f6;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-weight: normal; /* Add this line */
}

.main-container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Add some space between the blocks */
    width: 100%;
    max-width: 900px; /* Adjust max-width as needed */
    margin: 20px auto; /* Center the container */
}

.info-block {
    display: flex;
    justify-content: space-between; /* Pushes items to opposite ends */
    align-items: center; /* Vertically aligns items in the center */
    margin-bottom: 20px; /* Add some space below */
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding-bottom: 15px;
    flex: 1; /* Allow info-block to grow and shrink */
    /* Consider adding a max-width if needed, e.g., max-width: 350px; */
}

.info-left {
    display: flex;
    flex-direction: column; /* Stack title and logo vertically */
    align-items: center; /* Align items to the center */
}

.info-block .title {
    font-size: 1em;
    color: #555;
    margin-bottom: 5px; /* Space between title and logo */
    text-align: center; /* Center the text */
    width: 100%; /* Ensure the paragraph takes full width */
}

.info-block img {
    display: block; /* Ensure image takes its own line if needed */
    /* width: 150px; /* Adjust logo size if needed */
    /* height: auto; */
}

.info-block .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    padding-right: 10px; /* Add some space to the right */
    text-align: right; /* Align price text to the right */
}

.info-block .per-month {
    font-size: 0.7em;
    color: #777;
    display: block; /* Make "por mes" appear below the price */
    margin-top: 3px;
}

.accordion {
    flex: 1.5; /* Allow the accordion to take up more space */
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */ /* Removed shadow */
    border: 1px solid #ddd; /* Match info-block border */
    overflow: hidden;
    margin: 0;
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* Remove .accordion-item rule as it's no longer needed */

/* Remove .accordion-item:last-child rule as it's no longer needed */

.accordion-header {
    background-color: #f8f9fa;
    border: none;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-content {
    padding: 20px;
    background-color: #fff;
    /* border-top: 1px solid #e0e0e0; */ /* Removed border */
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: normal; /* Changed from bold */
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for padding and width */
    font-weight: normal; /* Ensure input text is also normal weight */
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

button#next-step-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button#next-step-button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    font-size: 0.8em;
    margin-top: 4px;
    display: block; /* Ensure it takes space */
    min-height: 1em; /* Prevent layout shifts */
}

/* Style for the Bancard container placeholder */
#bancard-iframe-container p {
    color: #666;
    text-align: center;
    padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        max-width: 100%; /* Allow container to take full width */
    }

    .info-block,
    .accordion {
        flex: none; /* Reset flex property */
        width: 100%; /* Make both blocks take full width */
        max-width: 500px; /* Maintain a max-width for readability */
        margin-bottom: 20px; /* Add space between stacked items */
    }
}
