/* Reset and Base Styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css');
@import url('https://fonts.googleapis.com/css?family=Poppins:600,500,400,700|Plus+Jakarta+Sans:700,400');

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', Helvetica, sans-serif;
}

button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}

a {
    text-decoration: none;
    color: inherit;
}

/* CSS Variables */
:root {
    --white: #ffffff;
    --cian: #33ccf6;
    --celeste: #3379f6;
    --azul-2: #3379f6;
    --azul-5: #3379f6;
    --textos: #6e6c83;
    --seguros: #ab76eb;
    --ce-travel: #45e08b;
    --gray-light: #f4f4f4;
    --gray-border: #a2a2a7;
    --gray-text: #494949;
    --black: #000000;
}

/* Common Container */
.app-container {
    background-color: var(--white);
    width: 100%;
    /*min-height: 100vh;*/
    position: relative;
    overflow-x: hidden;
    margin-bottom: 0;
}

/* Header Components */
.app-header-logo {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 25px;
}

.app-back-button {
    position: absolute;
    top: 54px;
    left: 20px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.app-header-divider {
    position: absolute;
    top: 112px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
}

/* Typography */
.app-title {
    font-family: 'Poppins', Helvetica;
    font-weight: 600;
    color: var(--azul-2);
    font-size: 28px;
    text-align: center;
    letter-spacing: 0;
    line-height: 39.2px;
}

.app-subtitle {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: var(--seguros);
    font-size: 14px;
    text-align: center;
    letter-spacing: 0;
    line-height: 22.4px;
}
.app-subtitle br{
    display: none;
}
.app-body-text {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: var(--textos);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 22.4px;
}

.app-label-text {
    font-family: 'Poppins', Helvetica;
    font-weight: 500;
    color: var(--textos);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 22.4px;
}

/* Buttons */
.app-btn-primary {
    display: flex;
    width: 100%;
    max-width: 342px;
    height: 58px;
    align-items: center;
    justify-content: center;
    background-color: var(--azul-2);
    border-radius: 5px;
    border: none;
    cursor: pointer;
    padding: 0 20px;
    /*margin: 0 auto;*/
}

.app-btn-primary-text {
    font-family: 'Poppins', Helvetica;
    font-weight: 600;
    color: #f7f9fc;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 24px;
}

.app-btn-secondary {
    display: flex;
    width: 100%;
    max-width: 342px;
    height: 58px;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 5px;
    border: 1px solid var(--azul-2);
    cursor: pointer;
    padding: 0 20px;
    margin: 0 auto;
}

.app-btn-secondary-text {
    font-family: 'Poppins', Helvetica;
    font-weight: 600;
    color: var(--azul-2);
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 20px;
}

.app-btn-link {
    display: flex;
    width: 100%;
}

/* Input Fields */
.app-input-group {
    width: 100%;
    max-width: 342px;
    margin: 0 auto 16px;
}

.app-input-field {
    width: 100%;
    height: 58px;
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 0 20px;
    font-family: 'Poppins', Helvetica;
    font-weight: 500;
    color: var(--gray-border);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
}

.app-input-field::placeholder {
    color: var(--gray-border);
    opacity: 0.4;
}

.app-input-field:focus {
    outline: none;
    border-color: var(--azul-2);
}

/* Radio Buttons */
.app-radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 342px;
    margin: 0 auto;
}

.app-radio-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    background-color: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 0 20px;
    cursor: pointer;
}

.app-radio-option.selected {
    background-color: var(--gray-light);
    border-color: var(--gray-border);
}

.app-radio-label {
    font-family: 'Poppins', Helvetica;
    font-weight: 500;
    color: var(--textos);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    width: 100%;
}

.app-radio-option.selected .app-radio-label {
    color: var(--gray-text);
}

.app-radio-circle {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--textos);
    border-radius: 50%;
    background-color: var(--white);
    position: relative;
    display: block!important;
}

.app-radio-circle.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var(--cian);
    border-radius: 50%;
}

/* Progress Dots */
.app-progress-dots {
    position: absolute;
    bottom: 86px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
}

.app-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e4e4e8;
}

.app-progress-dot.active {
    background-color: var(--azul-2);
}

/* Card Styles */
.app-card {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 24px;
    margin: 0 auto;
    max-width: 342px;
}

/* Info Box */
.app-info-box {
    background-color: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 24px;
    margin: 0 auto;
    max-width: 342px;
}

/* Upload Area */
.app-upload-area {
    border: 1px dashed var(--textos);
    border-radius: 9.4px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background-color: var(--white);
}

.app-upload-area:hover {
    background-color: #fafafa;
}

/* Photo Grid */
.app-photo-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 342px;
    margin: 0 auto;
}

.app-photo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 8px;
    min-height: 72px;
    gap: 1rem;
    cursor: pointer;
}

.app-photo-preview {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.app-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-photo-label {
    flex: 1;
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: var(--textos);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    text-align: start;
}

.app-photo-info {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--textos);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.app-photo-check {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.app-photo-arrow{
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #6E6C83;
    border-radius: 50%;
}

/* Summary List */
.app-summary-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
}

.app-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px 0;
    border-bottom: 1px solid #e0e0e0;
}

.app-summary-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.app-summary-text {
    flex: 1;
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: var(--textos);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 14px;
}
.summary-action-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .app-container {
        max-width: 768px;
        margin: 0 auto;
    }

    .app-title {
        /*font-size: 32px;*/
        /*line-height: 44px;*/
        font-weight: 700;
        color: var(--text-black);
        font-size: 40px;
        max-width: 100%;
    }

    .app-subtitle {
        font-size: 16px;
        line-height: 24px;
    }
    .app-subtitle br{
        display: flex;
    }

    .app-input-group,
    .app-card,
    .app-info-box,
    .app-photo-grid,
    .app-summary-list {
        max-width: 500px;
    }
    .app-radio-group {
        max-width: 390px;
    }
    .app-btn-primary,
    .app-btn-secondary {
        width: 100%;
        max-width: 270px;
        height: 40px;
        /*margin-inline: auto;*/
    }
    .summary-action-buttons-row {
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
        gap: 16px;
        margin-top: 32px;
    }
    .summary-action-buttons-row .app-btn-primary,
    .summary-action-buttons-row .app-btn-secondary {
        margin: 0;
    }
    .app-btn-link {
        max-width: 270px;
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 1024px;
    }

    .app-input-group,
    .app-card,
    .app-info-box,
    .app-photo-grid,
    .app-summary-list {
        max-width: 600px;
    }
}

/* Page Specific Styles */

.requirements-card {
    position: relative;
    margin-top: 20px;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

.requirements-title {
    margin-bottom: 24px;
}

.requirements-image {
    width: 212px;
    height: 220px;
    margin: 0 auto 24px;
    display: block;
}

.requirements-list {
    margin-bottom: 32px;
    text-align: center;
}

.requirements-info-icon {
    position: absolute;
    top: 144px;
    right: 38px;
    width: 19px;
    height: 19px;
}

/* Person Type Selection */
.person-type-page {
    padding: 149px 24px 86px;
}

.person-type-heading-section {
    text-align: center;
    /*margin-bottom: 40px;*/
    margin-top: 1.5rem;
}

.person-type-heading-section .app-title {
    margin-bottom: 8px;
}

.person-type-options {
    margin-block: 32px;
}

.personal-data-form-section {
    width: 100%;
    /*margin-bottom: 40px;*/
    margin-top: 40px;
}

.personal-data-form-group,
.address-form-group,
.app-vehicle-form-group,
.agency-form-section {
    margin-bottom: 16px;
    max-width: 390px;
    margin-inline: auto;
}

.personal-data-form-group label {
    display: block;
    margin-bottom: 8px;
}

/* Address Form */
.address-page {
    padding: 148px 24px 86px;
}

.address-preview {
    width: 100%;
    background-color: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px auto;
    max-width: 390px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.address-icon {
    width: 53px;
    height: 51px;
    flex-shrink: 0;
}

.address-text {
    font-family: 'Plus Jakarta Sans', Helvetica;
    font-weight: 700;
    color: var(--textos);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
}

.address-form-section {
    width: 100%;
    margin-bottom: 40px;
}

.address-form-group {
    margin-bottom: 16px;
}

.address-form-group label {
    display: block;
    margin-bottom: 8px;
}

.agency-heading-section {
    text-align: center;
    /*margin-bottom: 40px;*/
    margin-top: 1.5rem;
}

.agency-heading-section .app-title {
    margin-bottom: 8px;
}

.agency-form-section {
    margin-top: 40px;
}

.agency-form-group {
    margin-bottom: 16px;
}

.agency-form-group label {
    display: block;
    margin-bottom: 8px;
}

/* Vehicle Data Form */

.app-vehicle-card {
    background-color: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px auto;
    width: 100%;
    max-width: 390px;
    position: relative;
}

.app-vehicle-logo {
    width: 61px;
    height: 38px;
    margin-bottom: 16px;
}

.app-vehicle-model {
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    color: var(--textos);
    font-size: 18px;
    letter-spacing: 0;
    line-height: 24px;
    margin-bottom: 4px;
}

.app-vehicle-version {
    font-family: 'Plus Jakarta Sans', Helvetica;
    font-weight: 400;
    color: var(--textos);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
}

.app-vehicle-form-section {
    width: 100%;
    margin-bottom: 40px;
}

.app-vehicle-form-group {
    margin-bottom: 16px;
}

.app-vehicle-form-group label {
    display: block;
    margin-bottom: 8px;
}

.app-vehicle-zero-km-button {
    margin-top: 16px;
    margin-bottom: 32px;
}

/* Photo Instructions */
.photo-instructions-page {
    padding: 148px 24px 86px;
}

.photo-instructions-icon {
    width: 136px;
    height: 166px;
    margin: 32px auto;
    display: block;
}

.photo-instructions-note {
    text-align: center;
    margin-top: 16px;
    color: var(--seguros);
}

.photo-instructions-note strong {
    font-weight: 600;
}

/* Photo Upload Grid */
.photo-upload-page {
    padding: 148px 24px 86px;
}

.photo-grid-container {
    margin: 24px auto;
}

.photo-upload-disabled-button {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Screen 9 Modal Styles */
.screen9-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: start;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.screen9-modal-container {
    position: relative;
    background-color: var(--white);
    width: 100%;
    max-width: 390px;
    min-height: 100vh;
    border-radius: 12px;
    box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.2);
    padding: 3rem 24px;
}

.screen9-modal-logo {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 25px;
}

.screen9-modal-back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.screen9-modal-back-button img {
    width: 100%;
    height: 100%;
}

.screen9-modal-header-divider {
    position: absolute;
    top: 112px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
}

.screen9-modal-title {
    margin: 0 0 24px;
    text-align: center;
}

.screen9-modal-note {
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 19.6px;
    font-weight: 400;
}

.screen9-modal-example-card {
    border: 1px solid var(--gray-border);
    border-radius: 9.4px;
    padding: 24px;
    margin: 0 auto 24px;
    text-align: center;
    background-color: var(--white);
}

.screen9-modal-example-image {
    width: 181px;
    height: 87px;
    margin: 0 auto 12px;
    display: block;
    border-radius: 4px;
}

.screen9-modal-example-title {
    font-family: 'Poppins', Helvetica;
    font-weight: 600;
    color: var(--gray-text);
    font-size: 14.1px;
    letter-spacing: -0.21px;
    line-height: 17.6px;
    margin-bottom: 4px;
}

.screen9-modal-example-subtitle {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: var(--gray-text);
    font-size: 11px;
    letter-spacing: 0;
    line-height: 16.5px;
}

.screen9-modal-upload-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px dashed var(--textos);
    border-radius: 9.4px;
    padding: 24px;
    margin: 0 auto 24px;
    text-align: center;
    cursor: pointer;
    background-color: var(--white);
}

.screen9-modal-upload-card:hover {
    background-color: #fafafa;
}

.screen9-modal-upload-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
}

.screen9-modal-upload-title {
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    color: var(--textos);
    font-size: 14.1px;
    letter-spacing: -0.21px;
    line-height: 17.6px;
    margin-bottom: 4px;
}

.screen9-modal-upload-subtitle {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: var(--textos);
    font-size: 11px;
    letter-spacing: 0;
    line-height: 16.5px;
}

.screen9-modal-file-types-note {
    text-align: center;
    font-size: 10px;
    line-height: 16.5px;
    opacity: 0.8;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .screen9-modal-container {
        max-width: 500px;
        min-height: 60vh;
    }
}

/* Photo Detail Upload */
.photo-detail-page {
    padding: 146px 24px 86px;
}

.photo-detail-title {
    margin: 0 0 24px;
    text-align: center;
}

.photo-detail-note {
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 19.6px;
    font-weight: 400;
}

.photo-detail-example-card {
    border: 1px solid var(--gray-border);
    border-radius: 9.4px;
    padding: 24px;
    margin: 0 auto 24px;
    text-align: center;
    max-width: 342px;
    background-color: var(--white);
}

.photo-detail-example-image {
    width: 181px;
    height: 87px;
    margin: 0 auto 12px;
    display: block;
    border-radius: 4px;
}

.photo-detail-example-title {
    font-family: 'Poppins', Helvetica;
    font-weight: 600;
    color: var(--gray-text);
    font-size: 14.1px;
    letter-spacing: -0.21px;
    line-height: 17.6px;
    margin-bottom: 4px;
}

.photo-detail-example-subtitle {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: var(--gray-text);
    font-size: 11px;
    letter-spacing: 0;
    line-height: 16.5px;
}

.photo-detail-upload-card {
    border: 1px dashed var(--textos);
    border-radius: 9.4px;
    padding: 24px;
    margin: 0 auto 24px;
    text-align: center;
    cursor: pointer;
    max-width: 342px;
    background-color: var(--white);
}

.photo-detail-upload-icon {
    width: 136px;
    height: 166px;
    margin: 0 auto 12px;
}

.photo-detail-upload-title {
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    color: var(--textos);
    font-size: 14.1px;
    letter-spacing: -0.21px;
    line-height: 17.6px;
    margin-bottom: 4px;
}

.photo-detail-upload-subtitle {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: var(--textos);
    font-size: 11px;
    letter-spacing: 0;
    line-height: 16.5px;
}

.photo-detail-file-types-note {
    text-align: center;
    font-size: 10px;
    line-height: 16.5px;
    opacity: 0.8;
    margin-top: 24px;
    max-width: 342px;
    margin-left: auto;
    margin-right: auto;
}

/* Summary Page */
.summary-page {
    padding: 149px 24px 86px;
}

.summary-heading {
    text-align: center;
    /*margin-bottom: 40px;*/
    margin-top: 1.5rem;
}

.summary-heading .app-title {
    margin-bottom: 16px;
}

.summary-section {
    margin: 40px 0;
}

.summary-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.app-last-info-text {
    font-size: 12px;
    color: #6e6c83;
    text-align: center;
    padding: 0 30px;
    margin: 20px 0;
    line-height: 20px;
}

.app-last-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #6e6c83;
    text-align: center;
    margin-bottom: 16px;
    line-height: 25.6px;
}
.app-last-data-section-form{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.app-last-data-section {
    margin-bottom: 40px;
    max-width: 390px;
    width: 100%;
}
.app-last-data-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    max-width: 390px;
}

.app-last-data-item img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.app-last-data-item span {
    flex: 1;
    font-size: 14px;
    color: #6e6c83;
    line-height: 14px;
}

.app-last-data-item.highlight span {
    color: #6e6c83;
}

.app-last-data-item.highlight strong {
    font-weight: 700;
    color: #6e6c83;
}

.app-last-edit-btn {
    width: 16px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.app-last-edit-btn img {
    width: 100%;
    height: 100%;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 33px 0;
    margin-bottom: 40px;
}

.photo-card {
    position: relative;
    border-radius: 15.56px;
    overflow: hidden;
    aspect-ratio: 1;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 2.59px 10.37px;
    border-radius: 7.78px;
    font-size: 15.6px;
    line-height: 20.7px;
    font-weight: 400;
}

@media (min-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .photo-label br{
        display: none;
    }
}

.upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    margin-block: 16px;
    margin-inline: auto;
    max-width: 390px;
    width: 100%;
    min-height: 72px;
    border: 1px solid #a2a2a7;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
}

.upload-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.upload-text {
    flex: 1;
    font-size: 16px;
    color: #6e6c83;
    line-height: 24px;
    overflow-x: hidden;
}

.add-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.requirements {
    padding: 0;
    margin-bottom: 40px;
}

.requirements-title {
    font-size: 14px;
    font-weight: 600;
    color: #6e6c83;
    margin-bottom: 8px;
    line-height: 22.4px;
}

.requirements-list-0km {
    list-style: disc;
    list-style-position: inside;
    padding-left: 0;
}

.requirements-list-0km li {
    font-size: 14px;
    color: #6e6c83;
    line-height: 22.4px;
}

@media (min-width: 768px) {
    .upload-section,
    .requirements {
        max-width: 390px;
        margin-left: auto;
        margin-right: auto;
    }
}
