/*
 * Gericia Property Card – Estilos do popup
 * @package GericiaPropertyCard
 */

/* ================================================
   Overlay
   ================================================ */
.gpc-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
    animation: gpc-fade-in 0.2s ease;
}

.gpc-popup-overlay[hidden] {
    display: none;
}

@keyframes gpc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ================================================
   Modal
   ================================================ */
.gpc-popup {
    background: #ffffff;
    border-radius: var(--gpc-radius, 12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: gpc-slide-up 0.25s ease;
    overflow: hidden;
}

@keyframes gpc-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Fechar */
.gpc-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
    font-family: inherit;
    z-index: 1;
}

.gpc-popup-close:hover {
    color: #333;
    background: #f0f0f0;
}

/* Cabeçalho */
.gpc-popup-header {
    background: var(--gpc-btn, #2A5C6D);
    color: #ffffff;
    padding: 28px 28px 22px;
    text-align: center;
}

.gpc-popup-icon {
    width: 40px;
    height: 40px;
    fill: #ffffff;
    margin-bottom: 10px;
}

.gpc-popup-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gpc-popup-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

/* ================================================
   Body / Campos
   ================================================ */
.gpc-popup-body {
    padding: 24px 28px 28px;
}

.gpc-field {
    margin-bottom: 16px;
}

.gpc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.gpc-required {
    color: #e03e2d;
    margin-left: 2px;
}

.gpc-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    background: #fafafa;
}

.gpc-field input:focus {
    outline: none;
    border-color: var(--gpc-btn, #2A5C6D);
    background: #fff;
}

.gpc-field input.gpc-input-error {
    border-color: #e03e2d;
}

.gpc-field-error {
    display: block;
    font-size: 12px;
    color: #e03e2d;
    margin-top: 4px;
}

.gpc-field-error[hidden] {
    display: none;
}

/* Botão submit */
.gpc-popup-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--gpc-btn, #2A5C6D);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.gpc-popup-submit:hover {
    background: var(--gpc-btn-hover, #1E4350);
}

.gpc-popup-submit:active {
    transform: scale(0.98);
}

.gpc-popup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Privacidade */
.gpc-privacy {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.5;
}
