/* Mazda Chile Open Form - Styles */

/* Basic Container */
.mazda-form-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 8px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.form-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Groups - Single Column */
.form-group {
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    margin-bottom: 2px;
    font-weight: 400;
    color: #333;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 1rem;
    background: #fff;
    line-height: normal;
}

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

/* Phone Input with Prefix */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
}

.phone-prefix {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-right: none;
    padding: 12px 10px;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    border-radius: 0;
}

/* Error & Status */
.error-msg {
    color: #c00;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.status-msg {
    margin-top: 8px;
    font-size: 0.9em;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 4px;
    line-height: 1.4;
}


/* Closed Form Message */
.mazda-form-closed-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 30px 20px;
    text-align: center;
    color: #856404;
}

.mazda-form-closed-message p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Legal Text */
.form-legal {
    font-size: 0.85em;
    color: #555;
    margin-top: 16px;
    margin-bottom: 16px;
    line-height: 1.25;
}

.form-legal p {
    margin: 4px 0;
}

/* Horarios Info */
.form-horarios {
    font-size: 0.85em;
    color: #333;
    margin: 16px 0;
    line-height: 1.25;
}

.form-horarios strong {
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

/* Legal Checkbox */
.form-legal-checkbox {
    margin: 16px 0;
    font-size: 0.9em;
}

.form-legal-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: #333;
}

.form-legal-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.form-legal-checkbox a {
    color: #333;
    text-decoration: underline;
}

.form-legal-checkbox a:hover {
    color: #000;
}

/* Data Authorization */
.form-data-auth {
    font-size: 0.75em;
    color: #666;
    margin: 15px 0 25px;
    line-height: 1.5;
}

/* Button */
.mazda-btn {
    width: 100%;
    padding: 15px;
    background-color: #666;
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    text-align: center;
}

.mazda-btn:hover {
    background-color: #333;
}

.mazda-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Button Spinner */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: ocr-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.mazda-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Messages */
.success-message {
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
    margin-top: 15px;
}

.error-message {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
}

/* ── Label con icono tooltip ── */
.mazda-label-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.mazda-label-wrapper label {
    margin-bottom: 0 !important;
}

.mazda-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', serif;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    border: none;
    padding: 0;
    transition: opacity 0.2s;
}

.mazda-tooltip-icon:hover,
.mazda-tooltip-icon:focus {
    opacity: 0.7;
    outline: none;
}

/* ── Tooltip Modal Overlay ── */
.mazda-tooltip-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 90px;
    box-sizing: border-box;
    overflow: hidden;
}

.mazda-tooltip-modal-content {
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 0;
    position: relative;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.mazda-tooltip-modal-close {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.mazda-tooltip-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

.mazda-tooltip-modal-image {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 3px;
}

.mazda-tooltip-modal-text {
    line-height: 1.6;
    font-size: 1em;
    text-align: center;
    color: #fff;
}

.mazda-tooltip-modal-text p {
    margin: 6px 0;
}

.mazda-tooltip-modal-text strong {
    font-weight: 600;
}

