/**
 * Modal Form Styles for Hunter Maps Plugin
 * Contact form styling - ONLY for form modal
 * 
 * @package Hunter_Maps
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700&display=swap');

/* ========================================
   FORM WRAPPER - Desktop
   ======================================== */

.hunter-maps-custom-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 300;
    width: 100%;
    padding: 40px;
    background: #ffffff;
}

/* ========================================
   FORM FIELDS
   ======================================== */

.hunter-maps-custom-form .hunter-form-field {
    width: 100%;
}

.hunter-maps-custom-form .hunter-form-input,
.hunter-maps-custom-form .hunter-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 0;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 24px;
    color: #5B6770;
    background-color: #F4F6F7;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.hunter-maps-custom-form .hunter-form-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: none;
    border-radius: 0;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 24px;
    color: #5B6770;
    background-color: #F4F6F7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235B6770' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.hunter-maps-custom-form .hunter-form-input::placeholder,
.hunter-maps-custom-form .hunter-form-textarea::placeholder {
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #999999;
    opacity: 1;
}

.hunter-maps-custom-form .hunter-form-input:focus,
.hunter-maps-custom-form .hunter-form-textarea:focus,
.hunter-maps-custom-form .hunter-form-select:focus {
    outline: none;
    background-color: #F4F6F7;
    box-shadow: 0 0 0 2px rgba(237, 139, 0, 0.3);
}

.hunter-maps-custom-form .hunter-form-input:hover,
.hunter-maps-custom-form .hunter-form-textarea:hover,
.hunter-maps-custom-form .hunter-form-select:hover {
    background-color: #eaeef0;
}

.hunter-maps-custom-form .hunter-form-textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

/* ========================================
   PHONE FIELD
   ======================================== */

.hunter-maps-custom-form .hunter-form-phone-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.hunter-maps-custom-form .hunter-form-ddi {
    flex: 0 0 100px;
    min-width: 100px;
}

.hunter-maps-custom-form .hunter-form-phone-input {
    flex: 1;
    min-width: 0;
}

/* ========================================
   CHECKBOXES
   ======================================== */

.hunter-maps-custom-form .hunter-form-checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.hunter-maps-custom-form .hunter-form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 22px;
    color: #5B6770;
    user-select: none;
}

.hunter-maps-custom-form .hunter-form-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: #ED8B00;
}

.hunter-maps-custom-form .hunter-form-checkbox-label span {
    flex: 1;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 300;
}

.hunter-maps-custom-form .hunter-form-checkbox-label a,
.hunter-maps-custom-form .hunter-form-link {
    color: #ED8B00 !important;
    text-decoration: underline !important;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 300;
    transition: color 0.2s ease !important;
}

.hunter-maps-custom-form .hunter-form-checkbox-label a:hover,
.hunter-maps-custom-form .hunter-form-link:hover {
    color: #FFA726 !important;
}

/* ========================================
   SUBMIT BUTTON
   ======================================== */

.hunter-maps-custom-form .hunter-form-actions {
    width: 100%;
    margin-top: 10px;
}

.hunter-maps-custom-form .hunter-form-submit {
    background: rgb(237, 139, 0);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    display: block;
    transition: all 0.2s ease;
}

.hunter-maps-custom-form .hunter-form-submit:hover {
    background: #FAA938;
}

.hunter-maps-custom-form .hunter-form-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   VALIDATION
   ======================================== */

.hunter-maps-custom-form .hunter-form-field.has-error .hunter-form-input,
.hunter-maps-custom-form .hunter-form-field.has-error .hunter-form-textarea,
.hunter-maps-custom-form .hunter-form-field.has-error .hunter-form-select {
    background: #ffe6e6;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.hunter-maps-custom-form .hunter-form-error {
    color: #dc3545;
    font-family: "DM Sans", Sans-serif;
    font-size: 13px;
    font-weight: 400;
    margin-top: 6px;
    display: block;
}

/* ========================================
   LOADING STATE
   ======================================== */

.hunter-maps-custom-form .hunter-form-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 1000;
}

.hunter-maps-custom-form .hunter-form-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ED8B00;
    border-radius: 50%;
    animation: hunter-maps-spin 1s linear infinite;
}

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

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

.hunter-maps-custom-form .hunter-form-loading p {
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #5B6770;
}

.hunter-maps-custom-form .hunter-form-submit.loading {
    position: relative;
    color: transparent;
}

.hunter-maps-custom-form .hunter-form-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: hunter-maps-spin 0.8s linear infinite;
}

/* ========================================
   SUCCESS STATE
   ======================================== */

.hunter-maps-custom-form .hunter-maps-success-message,
.hunter-form-success-message {
    background: transparent;
    border: none;
    color: #5B6770;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    line-height: 1.6;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hunter-maps-custom-form .hunter-maps-success-message h3,
.hunter-form-success-message h3 {
    margin: 0 0 16px 0;
    font-family: "DM Sans", Sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #ED8B00;
}

.hunter-maps-custom-form .hunter-maps-success-message p,
.hunter-form-success-message p {
    font-family: "DM Sans", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    max-width: 400px;
    color: #5B6770;
}

.hunter-maps-custom-form .hunter-maps-success-icon,
.hunter-form-success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 72px;
    font-weight: bold;
}

/* ========================================
   MOBILE RESPONSIVE - max-width: 480px
   ======================================== */

@media (max-width: 480px) {
    .hunter-maps-custom-form {
        gap: 0;
        padding: 0;
        margin: 22px 0 0 0;
        background: transparent;
    }

    .hunter-maps-custom-form .hunter-form-field {
        margin-bottom: 16px;
    }

    .hunter-maps-custom-form .hunter-form-input,
    .hunter-maps-custom-form .hunter-form-textarea,
    .hunter-maps-custom-form .hunter-form-select {
        padding: 14px 16px;
        border-radius: 4px;
    }

    .hunter-maps-custom-form .hunter-form-submit {
        padding: 16px 24px;
        margin-top: 16px;
    }

    .hunter-maps-custom-form .hunter-form-actions {
        margin-top: 16px;
    }

    .hunter-maps-custom-form .hunter-form-checkbox-field {
        margin: 12px 0;
    }

    .hunter-maps-custom-form .hunter-form-phone-group {
        flex-direction: column;
        gap: 12px;
    }

    .hunter-maps-custom-form .hunter-form-ddi {
        flex: 1;
        width: 100%;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hunter-maps-custom-form * {
    box-sizing: border-box;
}

.hunter-maps-custom-form .hunter-maps-hidden {
    display: none !important;
}

.hunter-maps-custom-form .hunter-maps-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}/* Estil
os para máscara de telefone com Cleave.js */
input[type="tel"],
input[name*="phone"],
input[name*="telefone"] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estados de validação da máscara de telefone */
input.phone-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25) !important;
}

input.phone-invalid:not(:focus) {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

/* Placeholder específico para telefone */
input[type="tel"]::placeholder,
input[name*="phone"]::placeholder,
input[name*="telefone"]::placeholder {
    color: #6c757d;
    opacity: 0.7;
    font-style: italic;
    font-size: 0.9em;
}

/* Foco específico para campos de telefone */
input[type="tel"]:focus,
input[name*="phone"]:focus,
input[name*="telefone"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Estilos específicos para Cleave.js */
.cleave-phone {
    font-variant-numeric: tabular-nums;
}

/* Estilo para campo em preenchimento */
input[type="tel"]:not(:placeholder-shown),
input[name*="phone"]:not(:placeholder-shown),
input[name*="telefone"]:not(:placeholder-shown) {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Indicador visual de país */
input[type="tel"]::before,
input[name*="phone"]::before,
input[name*="telefone"]::before {
    content: "🇧🇷";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    opacity: 0.6;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    input[type="tel"],
    input[name*="phone"],
    input[name*="telefone"] {
        font-size: 16px; /* Evita zoom no iOS */
        letter-spacing: 0.3px;
    }
}

/* Animação suave para mudanças */
input[type="tel"],
input[name*="phone"],
input[name*="telefone"] {
    transition: all 0.2s ease-in-out;
}/* E
stilos para mensagem de sucesso do formulário */
.hunter-form-success-message {
    text-align: center;
    padding: 30px 20px;
}

.hunter-success-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hunter-icon-success {
    width: 64px;
    height: 64px;
    animation: successPulse 0.6s ease-out;
}

.hunter-form-success-message h3 {
    color: #ff8c00;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

.hunter-form-success-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Animação de pulso para o ícone de sucesso */
@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .hunter-icon-success {
        width: 56px;
        height: 56px;
    }
    
    .hunter-form-success-message h3 {
        font-size: 20px;
    }
    
    .hunter-form-success-message p {
        font-size: 14px;
    }
}/* Es
tilos para links de telefone no modal */
.hunter-maps-phone-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.hunter-maps-phone-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.hunter-maps-phone-link:active {
    color: #004085;
}

/* Indicador visual para links clicáveis */
.hunter-maps-contact-item:has(.hunter-maps-phone-link) {
    cursor: pointer;
}

.hunter-maps-contact-item:has(.hunter-maps-phone-link):hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .hunter-maps-phone-link {
        font-size: 16px; /* Evita zoom no iOS */
        display: block;
        padding: 8px 0;
    }
    
    .hunter-maps-contact-item:has(.hunter-maps-phone-link):hover {
        background-color: rgba(0, 123, 255, 0.1);
        padding: 4px 8px;
        margin: -4px -8px;
    }
}