body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #f4f4f4;
}

.container {
    margin: 0px auto;
    background: #fff;
    padding: 35px 40px 30px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(164, 38, 44, 0.10), 0 1.5px 6px rgba(0, 0, 0, 0.07);
}

.first-section {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.first-section > :first-child {
    grid-column: span 6;
}

.first-section > :nth-child(2) {
    grid-column: span 2;
    margin-right: 10px;
}

.first-section > :nth-child(3) {
    grid-column: span 4;
}

.first-section > :nth-child(4) {
    grid-column: span 4;
    grid-row-start: 3;
    margin-right: 10px;
}

.first-section > :nth-child(5) {
    grid-column: span 3;
    margin-right: 10px;
}

.first-section > :nth-child(6) {
    grid-row-start: 3;
    grid-column-start: 4;
    grid-column: span 2;
}

.first-section > :nth-child(7) {
    grid-column: span 3;
}

.first-section > :nth-child(8) {
    grid-column: span 3;
    margin-right: 10px;
}

.first-section > :nth-child(9) {
    grid-column: span 3;
}

.first-section > :nth-child(10) {
    grid-column: span 3;
    margin-right: 10px;
}

.first-section > :nth-child(11) {
    grid-column: span 3;
}

@media (max-width: 1600px) {
    .first-section > :nth-child(5) {
        grid-column: span 4;
    }

    .first-section > :nth-child(7) {
        grid-column: span 2;
    }
}

@media (max-width: 1425px) {
    .section-container {
        margin: 0 50px !important;
    }
}

@media (max-width: 1350px) {
    .first-section > :nth-child(5) {
        grid-column: span 6;
        margin-right: 0;
    }

    .first-section > :nth-child(8) {
        margin-right: 0;
    }

    .first-section > :nth-child(7) {
        grid-column: span 3;
        margin-right: 10px;
    }

    .first-section > :nth-child(10) {
        grid-column: span 2;
        margin-right: 10px;
    }

    .first-section > :nth-child(9) {
        grid-column: span 2;
        margin-right: 10px;
    }

    .first-section > :nth-child(11) {
        grid-column: span 2;
    }
}

h2 {
    color: #111;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-section {
    margin-bottom: 30px;
    padding: 18px 20px 10px 20px;
    border: 1.5px solid #e9e9e9;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-shadow: 0 1px 4px rgba(164, 38, 44, 0.04);
}

.form-section h3 {
    margin-top: 0;
    color: #111;
    margin-bottom: 18px;
    font-size: 1.18em;
    font-weight: 600;
}

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

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    /* padding: 11px 12px; */
    border: 1.5px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #A4262C;
    outline: none;
}

input[type="checkbox"] {
    accent-color: #A4262C;
    margin-right: 8px;
}

.form-check {
    margin-bottom: 12px;
}

.btn-primary {
    background-color: #A4262C;
    color: white;
    padding: 13px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.13em;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 2px 8px rgba(164, 38, 44, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background-color: #7d1b20;
    box-shadow: 0 4px 16px rgba(164, 38, 44, 0.13);
}

.btn-primary:disabled {
    cursor: not-allowed;
    pointer-events: none;
    background-color: #C27A7E;
}

.text-danger {
    color: #A4262C;
    font-size: 0.93em;
    margin-top: 5px;
}

.button-loader {
    position: relative;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.2s;
}

.loader-b {
    border: 4px solid #ccc;
    border-top: 4px solid rgba(164, 38, 44, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 12px;
    left: 35px;
    display: none;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.payment-method {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.payment-method img {
    width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.payment-method .payment-label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.payment-method.selected {
    transform: translateY(-5px);
}

.payment-method.selected img {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.payment-method:hover img {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.iti {
    width: 100%;
}

#numero_telefono {
    width: 100%;
}

.price-span {
    font-weight: bold;
    font-size: 1.2em;
}

.section-container {
    display: flex;
    margin: 0 100px;
    gap: 40px;
    padding: 30px 20px;
}

.container-info {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 370px;
    flex-shrink: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.container-info img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.container-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.course-meta {
    margin: 15px 0;
    font-size: 0.95rem;
    color: #666;
}

.course-meta div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-meta i {
    color: #A4262C;
    width: 20px;
    text-align: center;
}

.price-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.price {
    font-size: 2rem;
    color: #A4262C;
    font-weight: 700;
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    margin-right: 10px;
}

.discount-badge {
    background-color: #FFE6E7;
    color: #A4262C;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.enroll-button {
    background-color: #A4262C;
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.enroll-button:hover {
    background-color: #8c1f24;
}

.payment-warning-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

#payment-warning {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #A4262C;
    border-left: 5px solid #A4262C;
    padding: 10px;
    border-radius: 6px;
    margin: 20px 0;
}

#payment-warning p {
    margin: 0;
    font-weight: bold;
}

.pay-now-text {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.pay-now {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    display: none;
}

.select-class {
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e ");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.select-class:hover {
    cursor: pointer;
}

.select-class:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 11 6-6 6 6'/%3e%3c/svg%3e");
}

.coupon-info-container {
    margin-top: 10px;
}

.coupon-info {
    color: #A4262C;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #FFE6E7;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.coupon-close {
    appearance: none;
    border: none;
    background: transparent;
    color: #A4262C;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.promotional-code {
    display: none;
}

#empresa_fields {
    grid-template-columns: repeat(6, 1fr);
}

#empresa_fields > * {
    grid-column: span 3;
}

#empresa_fields > :nth-child(7), #empresa_fields > :nth-child(8) {
    grid-column: span 6;
}

#empresa_fields > :nth-child(5), #empresa_fields > :nth-child(1), #empresa_fields > :nth-child(3) {
    margin-right: 10px;
}
    

@media (max-width: 576px) {
    .payment-method img {
        max-width: 180px;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 18px 5vw 18px 5vw;
    }
}

@media (max-width: 600px) {
    .loader-b {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    #tipo_identificacion {
        width: 200px;
    }

    .first-section > :nth-child(8) {
        margin-right: 0;
    }

    .first-section > :nth-child(7) {
        grid-column: span 3;
        margin-right: 10px;
    }

    .first-section > :nth-child(10) {
        grid-column: span 3;
        margin-right: 0px;
    }

    .first-section > :nth-child(9) {
        grid-column: span 3;
        margin-right: 10px;
    }

    .first-section > :nth-child(11) {
        grid-column: span 3;
        margin-right: 10px;
    }

    .first-section > :nth-child(6) {
        grid-column: mportant;
        grid-row-start: 7;
        grid-column-start: 4 !important;
    }

    .first-section > :nth-child(4) {
        grid-column: span 6;
    }

}

@media (max-width: 1070px) {
    .section-container {
        flex-direction: column;
        padding: 15px;
        gap: 25px;
    }

    .container-info {
        width: 100%;
        max-width: 100%;
        position: static;
        margin-bottom: 20px;
        padding: 20px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin: 0;
    }

    .form-section {
        padding: 15px;
    }

    .payment-label {
        font-size: 14px;
    }

    .enroll-button,
    #submit-button {
        padding: 12px;
        font-size: 16px;
    }

    .price-container {
        padding: 15px;
    }

    .price {
        font-size: 1.8rem;
    }

    .course-meta {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .section-container {
        margin: 0 20px !important;
    }

    .payment-methods {
        flex-direction: column;
        gap: 10px;
    }

    .payment-method {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding: 10px;
    }

    .form-check-label {
        font-size: 0.9rem;
    }

    .container-info h3 {
        font-size: 1.3rem;
    }

    .first-section {
        display: flex;
        flex-direction: column;
    }

    #empresa_fields {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    #empresa_fields > * {
        grid-column: span 1 !important;
        margin-right: 0 !important;
    }

    .first-section > * {
        margin-right: 0 !important;
    }

    .identificacion-container {
        display: block !important;
    }

    .identificacion-container > * {
        width: 100% !important;
        margin: 0 !important;
    }

    .identificacion-container > :last-child {
        margin-top: 10px !important;
    }
        
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* intl-tel-input styles */
.intl-tel-input {
    display: block !important;
}

.intl-tel-input .selected-flag {
    padding: 0 6px 0 8px;
}

.intl-tel-input .country-list {
    z-index: 1000;
}

.course-not-found {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

header {
    display: flex;
    background-color: #A4262C;
    padding: 30px 90px;
}

.logo {
    width: 100%;
    max-width: 300px;
}

.logo img {
    width: 140px;
    height: auto;
}