/* Overlay */
.diamond-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.diamond-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Container */
.diamond-popup-container {
    background: white;
    border-radius: 16px;
    box-sizing: border-box;
    margin: 0;
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: scale(0.8) translateY(50px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.diamond-popup-overlay.active .diamond-popup-container {
    transform: scale(1) translateY(0);
    animation: diamondFadeIn 0.4s ease-out;
}

/* Botão de fechar ajustado para fora do conteúdo */
.diamond-popup-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #a77a29;
    box-shadow: 0 4px 16px rgba(208,154,64,0.13);
}
.diamond-popup-close:hover {
    background: #fffbe7;
    color: #d09a40;
    transform: scale(1.08);
}

.diamond-popup-content {
    display: flex;
    min-height: 500px;
    height: 100%;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Imagem ocupa 95% da área disponível */
.diamond-popup-image {
    flex: 1;
    background: linear-gradient(135deg, #d09a40 0%, #b8892d 50%, #aa7c12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    min-height: 400px;
}
.diamond-popup-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 230, 184, 0.20) 0%, transparent 60%);
}
.diamond-popup-image img {
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(208, 154, 64, 0.2);
    z-index: 1;
    position: relative;
    margin: 0 auto;
    display: block;
    background: #fffbe7;
}

/* Form Section */
.diamond-popup-form-section {
    flex: 1;
    min-width: 340px;
    min-height: 420px;
    padding: 40px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #fffbe7 0%, #f8f5ee 100%);
    position: relative;
    overflow-y: auto;
    box-sizing: border-box;
}

.diamond-popup-header {
    text-align: center;
    margin-bottom: 35px;
}
.diamond-popup-logo {
    font-size: 32px;
    font-weight: bold;
    color: #d09a40;
    margin: 32px 0 8px 0;   /* <-- aumenta espaço do topo */
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(208, 154, 64, 0.1);
}
.diamond-popup-icon {
    font-size: 28px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(208, 154, 64, 0.2));
}
.diamond-popup-subtitle {
    color: #a77a29;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}
.diamond-popup-subtitle strong {
    color: #d09a40;
    font-size: 20px;
}

/* Form Fields */
.diamond-popup-form {
    width: 100%;
}
.diamond-form-row {
    margin-bottom: 20px;
}
.diamond-popup-form input[type="text"],
.diamond-popup-form input[type="email"],
.diamond-popup-form input[type="tel"] {
    width: 100%;
    padding: 16px;
    border: 2px solid #f0e0c4;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
    font-family: inherit;
    color: #a77a29;
}
.diamond-popup-form input:focus {
    outline: none;
    border-color: #d09a40;
    box-shadow: 0 0 0 3px rgba(208, 154, 64, 0.12);
    transform: translateY(-1px);
}
.diamond-popup-form input::placeholder {
    color: #ceb17a;
}

/* Checkboxes */
.diamond-checkbox-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.diamond-checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #a77a29;
    line-height: 1.5;
    cursor: pointer;
}
.diamond-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    accent-color: #d09a40;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.diamond-checkbox-label a {
    color: #d09a40 !important;
    text-decoration: underline;
}

/* Submit Button */
.diamond-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #d09a40 0%, #b8892d 100%);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(208, 154, 64, 0.3);
    position: relative;
    overflow: hidden;
}
.diamond-submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,235,160,0.16), transparent);
    transition: left 0.5s;
}
.diamond-submit-btn:hover::before {
    left: 100%;
}
.diamond-submit-btn:hover {
    background: linear-gradient(135deg, #b8892d 0%, #aa7c12 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208, 154, 64, 0.4);
}
.diamond-submit-btn:disabled {
    background: #ceb17a;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(208, 154, 64, 0.10);
}
.diamond-submit-btn.loading {
    color: transparent;
    pointer-events: none;
}
.diamond-submit-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,235,160,0.25);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: diamondSpin 1s linear infinite;
}
@keyframes diamondSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.diamond-success-message {
    background: linear-gradient(135deg, #f7f6ef 0%, #fce9c7 100%);
    color: #a77a29;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #d09a40;
    margin-top: 15px;
}
.diamond-error-message {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #fca5a5;
    margin-top: 15px;
}
.diamond-popup-disclaimer {
    font-size: 12px;
    color: #ceb17a;
    text-align: center;
    margin-top: 25px;
    line-height: 1.5;
    font-style: italic;
}

/* Responsivo */
@media (max-width: 900px) {
    .diamond-popup-container {
        max-width: 98vw;
        width: 98vw;
    }
    .diamond-popup-content {
        flex-direction: column;
        min-height: unset;
        max-height: unset;
    }
    .diamond-popup-image, .diamond-popup-form-section {
        min-width: unset;
        min-height: unset;
        padding: 24px;
    }
    .diamond-popup-image img {
        width: 95%;
        height: 220px;
        max-width: 95%;
        max-height: 220px;
    }
    .diamond-popup-form-section {
        padding-top: 24px !important;
    }
    .diamond-popup-close {
        top: -12px;
        right: -12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}
@media (max-width: 600px) {
    .diamond-popup-container {
        width: 99vw;
        margin: 0;
        min-width: 0;
        max-width: 99vw;
        border-radius: 0;
    }
    .diamond-popup-form-section {
        padding: 36px 8px 16px 8px !important;
        min-width: 0;
        max-height: 70vh;
    }
    .diamond-popup-logo {
        font-size: 20px;
        margin-top: 20px;
    }
    .diamond-popup-subtitle {
        font-size: 15px;
    }
    .diamond-popup-image {
        padding: 10px;
    }
    .diamond-popup-image img {
        width: 95%;
        height: 120px;
        max-width: 95%;
        max-height: 120px;
    }
    .diamond-popup-close {
        top: -8px;
        right: -8px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* Entrada animada */
@keyframes diamondFadeIn {
    from { opacity: 0; transform: scale(0.8) translateY(50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}