/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg,#f5f7fa 0%,#c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================
   HEADER
========================= */

header {
    text-align: center;
    margin-bottom: 30px;
}

    header h1 {
        color: #1a237e;
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* =========================
   GRID RESPONSIVO
========================= */

.row,
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    width: 100%;
}


[class*="col-"] {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Large >= 992px */

.col-lg-1 {
    width: 8.333333%;
}

.col-lg-2 {
    width: 16.666667%;
}

.col-lg-3 {
    width: 25%;
}

.col-lg-4 {
    width: 33.333333%;
}

.col-lg-5 {
    width: 41.666667%;
}

.col-lg-6 {
    width: 50%;
}

.col-lg-7 {
    width: 58.333333%;
}

.col-lg-8 {
    width: 66.666667%;
}

.col-lg-9 {
    width: 75%;
}

.col-lg-10 {
    width: 83.333333%;
}

.col-lg-11 {
    width: 91.666667%;
}

.col-lg-12 {
    width: 100%;
}

/* Responsivo */
@media (max-width: 991px) {
    [class*="col-lg-"] {
        width: 100%;
    }
}
[class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    min-width: 0;
}

/* MOBILE */

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* TABLET */

@media (min-width:768px) {

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* DESKTOP */

@media (min-width:992px) {

    .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* =========================
   FLEX HELPERS
========================= */

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

/* =========================
   SPACING
========================= */

.m-1 {
    margin: .25rem;
}

.m-2 {
    margin: .5rem;
}

.m-3 {
    margin: 1rem;
}

.mt-1 {
    margin-top: .25rem;
}

.mt-2 {
    margin-top: .5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: .25rem;
}

.mb-2 {
    margin-bottom: .5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.p-1 {
    padding: .25rem;
}

.p-2 {
    padding: .5rem;
}

.p-3 {
    padding: 1rem;
}

/* =========================
   BADGES
========================= */

.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 600;
    line-height: 1;
    border-radius: 50rem;
}

.bg-primary {
    background: #0d6efd;
    color: #fff;
}

.bg-success {
    background: #198754;
    color: #fff;
}

.bg-danger {
    background: #dc3545;
    color: #fff;
}

.bg-warning {
    background: #ffc107;
    color: #000;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    padding: .6rem 1rem;
    border: none;
    border-radius: .375rem;
    cursor: pointer;
    text-decoration: none;
    transition: .3s;
}

.btn-primary {
    background: #0d6efd;
    color: white;
}

    .btn-primary:hover {
        opacity: .9;
    }

.btn-success {
    background: #198754;
    color: white;
}

/* =========================
   CHECKOUT LAYOUT
========================= */

.checkout-container {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    overflow: hidden;
}

.left-panel {
    flex: 1;
    min-width: 0;
    padding: 30px;
}

.right-panel {
    width: 360px;
    min-width: 320px;
    max-width: 360px;
    padding: 30px;
    background: #f8f9fa;
    position: sticky;
    top: 20px;
}

/* =========================
   TITLES
========================= */

h2 {
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0d47a1;
}

h3 {
    color: #0d47a1;
    margin: 25px 0 15px;
    padding-left: 10px;
    border-left: 4px solid #0d47a1;
    font-size: 1.3rem;
}

/* =========================
   MOBILE CHECKOUT
========================= */

@media (max-width:768px) {

    .checkout-container {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .right-panel {
        position: relative;
        top: unset;
    }

    .container {
        padding: 0 10px;
    }
}


/* =========================
   PROGRESS STEPS
========================= */

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
    width: 100%;
}

.step {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 25px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: #e0e0e0;
        z-index: 1;
    }

    .step.active:not(:last-child)::after,
    .step.completed:not(:last-child)::after {
        background: #2e7d32;
    }

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: #999;
    margin-bottom: 10px;
    transition: .3s;
    z-index: 2;
    position: relative;
}

.step.active .step-icon {
    background: #1a237e;
    border-color: #0d47a1;
    color: white;
    box-shadow: 0 5px 15px rgba(26,35,126,.3);
}

.step.completed .step-icon {
    background: #2e7d32;
    border-color: #1b5e20;
    color: white;
}

    .step.completed .step-icon::after {
        content: "✓";
        font-weight: bold;
    }

.step-text {
    font-size: .9rem;
    color: #666;
    font-weight: 500;
}

.step.active .step-text {
    color: #1a237e;
    font-weight: bold;
}

.step.completed .step-text {
    color: #2e7d32;
}

/* MOBILE */

@media (max-width:768px) {

    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .step {
        width: 100%;
        flex-direction: row;
        gap: 15px;
        text-align: left;
    }

        .step:not(:last-child)::after {
            top: 45px;
            left: 24px;
            width: 2px;
            height: 40px;
        }

    .step-icon {
        margin-bottom: 0;
        min-width: 45px;
        width: 45px;
        height: 45px;
    }
}

/* =========================
   EVENT BANNER
========================= */

.event-banner {
    background: linear-gradient(135deg,#1a237e 0%,#0d47a1 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

    .event-banner h2 {
        color: white;
        border: none;
        padding: 0;
        margin-bottom: 10px;
    }

.event-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.event-detail {
    text-align: center;
}

    .event-detail .icon {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .event-detail .label {
        font-size: .85rem;
        opacity: .9;
    }

    .event-detail .value {
        font-size: 1.1rem;
        font-weight: bold;
    }

/* =========================
   TICKETS GRID
========================= */

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ticket-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: .3s;
}

    .ticket-card:hover {
        border-color: #0d47a1;
        box-shadow: 0 5px 15px rgba(13,71,161,.1);
    }

    .ticket-card.selected {
        border-color: #2e7d32;
        background: #e8f5e9;
    }

    .ticket-card.palestrante {
        border-left: 4px solid #1a237e;
    }

    .ticket-card.ouvinte {
        border-left: 4px solid #0d47a1;
    }

    .ticket-card.vip {
        border-left: 4px solid #2e7d32;
    }

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ticket-title {
    font-weight: bold;
    color: #1a237e;
    font-size: 1.1rem;
}

.ticket-price {
    color: #2e7d32;
    font-weight: bold;
    font-size: 1.3rem;
}

.ticket-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: .85rem;
    color: #666;
}

    .feature-tag.important {
        background: #fff3e0;
        color: #e65100;
    }

/* =========================
   PARTICIPANTS
========================= */

.participant-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.participant-count {
    font-weight: bold;
    color: #1a237e;
}

.add-participant {
    background: #0d47a1;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    cursor: pointer;
    transition: .3s;
}

    .add-participant:hover {
        background: #1a237e;
    }

.participant-list {
    max-height: 300px;
    overflow-y: auto;
}

.participant-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: 600;
}

.participant-type {
    font-size: .85rem;
    color: #666;
}

.participant-remove {
    background: #c62828;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

/* =========================
   FORMS
========================= */

.form-group,
.participant-form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}

.form-control,
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: .3s;
}

    .form-control:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #0d47a1;
        box-shadow: 0 0 0 3px rgba(13,71,161,.08);
    }

.invalid-feedback {
    color: #dc3545;
    font-size: .85rem;
    margin-top: 5px;
}



/* =========================
   LOGIN SECTION
========================= */

.login-section {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

    .login-section h4 {
        color: #e65100;
        margin-bottom: 10px;
        font-size: 1rem;
    }

.login-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.login-btn {
    padding: 8px 16px;
    border: 2px solid #e65100;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: .9rem;
    transition: .3s;
}

    .login-btn:hover {
        background: #ffe0b2;
    }

/* =========================
   PAYMENT METHODS
========================= */

.payment-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}

    .payment-method:hover {
        border-color: #0d47a1;
    }

    .payment-method.selected {
        border-color: #0d47a1;
        background: rgba(13,71,161,.05);
    }

.radio-container input[type=radio] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-info {
    flex: 1;
}

.payment-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.payment-desc {
    color: #666;
    font-size: .9rem;
}

.payment-icon {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* =========================
   ORDER SUMMARY
========================= */

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: .95rem;
}

    .summary-row:last-child {
        border-bottom: none;
    }

.summary-total {
    font-weight: bold;
    font-size: 1.4rem;
    color: #1a237e;
    border-top: 2px solid #1a237e;
    margin-top: 20px;
    padding-top: 15px;
    text-align: center;
}

.total-value {
    display: block;
    color: #2e7d32;
    font-size: 1.8rem;
    margin-top: 5px;
}

.participant-total {
    color: #0d47a1;
    font-size: .9rem;
    margin-top: 5px;
}

.secure-lock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    margin-bottom: 25px;
}

    .secure-lock svg {
        width: 20px;
        height: 20px;
    }

/* =========================
   PRODUCT SUMMARY
========================= */

.product-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.product-image {
    width: 180px;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 5px;
}

.product-details {
    color: #666;
    font-size: .9rem;
}

.product-price {
    color: #2e7d32;
    font-weight: bold;
    font-size: 1.3rem;
    margin-top: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: .3s;
}

    .qty-btn:hover {
        background: #f0f0f0;
    }
/* =========================
   MODAL
========================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1050;
    /* centraliza */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

    .modal:not(.active) {
        display: none;
    }

    .modal.active {
        display: flex;
    }

/* dialog */
.modal-dialog {
    width: 100%;
    max-width: 520px;
}

/* tamanhos */
.modal-sm {
    max-width: 350px;
}

.modal-md {
    max-width: 520px;
}

.modal-lg {
    max-width: 900px;
}

.modal-xl {
    max-width: 1200px;
}

/* conteúdo */
.modal-content {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    height: 90vh; /* IMPORTANTE */
    max-height: 90vh;
}

/* header */
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
    }

/* BODY COM SCROLL */
.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 25px;
}

/* footer */
.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* fechar */
.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}


/* form ocupa toda altura do modal */
.modal-content form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* conteúdo do modal */
.modal-content {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    height: 90vh;
    overflow: hidden;
}

/* body com scroll */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    min-height: 0;
}

/* footer fixo */
.modal-footer {
    flex-shrink: 0;
    padding: 15px 25px;
    border-top: 1px solid #eee;
}

/* =========================
   STATUS MESSAGES
========================= */

.status-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: .9rem;
}

.status-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.status-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

/* =========================
   BUTTONS
========================= */

.btn-complete {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 10px;
    background: #1a237e;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 5px 15px rgba(26,35,126,.3);
}

    .btn-complete:hover {
        background: #0d47a1;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(26,35,126,.4);
    }

.btn-cancel {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}

    .btn-cancel:hover {
        background: #ececec;
    }

/* =========================
   IMAGES
========================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   MOBILE FINAL
========================= */

@media (max-width:768px) {

    .event-details {
        flex-direction: column;
        gap: 15px;
    }

    .ticket-features {
        flex-direction: column;
    }

    .participant-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .add-participant {
        width: 100%;
    }

    .product-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-image {
        width: 100%;
        height: auto;
    }

    .ticket-type-selector {
        flex-direction: column;
    }

    .modal-content {
        padding: 20px;
    }
}

/* =========================
   ALERTS
========================= */

.alert {
    position: relative;
    padding: 16px 50px 16px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
}

/* botão fechar */
.alert-close {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: .7;
    padding: 0;
    line-height: 1;
}

    .alert-close:hover {
        opacity: 1;
    }

/* SUCCESS */
.alert-success {
    background: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

    .alert-success .alert-close {
        color: #3c763d;
    }

/* WARNING */
.alert-warning {
    background: #fcf8e3;
    border-color: #faebcc;
    color: #8a6d3b;
}

    .alert-warning .alert-close {
        color: #8a6d3b;
    }

/* DANGER */
.alert-danger {
    background: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

    .alert-danger .alert-close {
        color: #a94442;
    }

/* INFO */
.alert-info {
    background: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
}

    .alert-info .alert-close {
        color: #31708f;
    }

/* Alert grande / announcement */
.alert-lg {
    padding: 25px 55px 25px 20px;
}

.alert-title {
    font-size: 30px;
    margin-bottom: 12px;
    font-weight: 300;
}

.alert-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.alert-btn {
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.alert-btn-primary {
    background: #5bc0de;
    border-color: #46b8da;
    color: #fff;
}

.alert-btn:hover {
    opacity: .9;
}

/* PRIMARY MODERNO */
.alert-primary {
    background: #cfe2ff;
    border: 1px solid #b6d4fe;
    color: #084298;
}

    .alert-primary .alert-close {
        color: #084298;
    }
     
.swal2-title {
    font-size: 21px !important;
    padding-bottom: 20px !important
}

.participant-edit {
    background: #0d6efd;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}