/* Form Styling */
.form-wrapper {
    background: #fff;
    padding: 40px;
    border: 1px solid #e0e0e0;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #000;
}

.form-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.wealthora-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    padding: 12px;
    background: #fcfcfc;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #000;
    background: #fff;
}

input.error {
    border-color: #d00;
    background: #fff5f5;
}

/* Checkbox */
.consent-block {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #555;
    margin-top: 5px;
}

.consent-block input {
    margin-top: 3px;
    margin-right: 10px;
}

.consent-block label {
    text-transform: none;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
}

/* Button */
.black-btn {
    background-color: #111;
    color: #fff;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
    user-select: none;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.black-btn:hover {
    opacity: 0.85;
}

/* Errors */
.error-msg {
    color: #d00;
    font-size: 11px;
    position: absolute;
    bottom: -18px;
    left: 0;
    display: none;
}

.static-error {
    position: static;
    display: none;
    margin-left: 23px;
    margin-top: 5px;
    width: 100%;
}

/* Loader */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Popup */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(2px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0; transition: opacity 0.3s;
}

.overlay.active { opacity: 1; }

.popup {
    background: #fff;
    width: 90%; max-width: 400px;
    border: 1px solid #ddd;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: scale(0.95); transition: transform 0.3s;
}

.overlay.active .popup { transform: scale(1); }

.popup-top {
    padding: 15px 20px;
    background: #111;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-top h3 { margin: 0; font-family: var(--font-serif); font-size: 18px; font-weight: normal; }

.close-icon { cursor: pointer; font-size: 20px; }

.popup-content { padding: 30px; text-align: center; }

.icon-ok { font-size: 40px; color: #111; margin-bottom: 20px; }

.small-btn { width: auto; padding: 10px 30px; display: inline-flex; margin-top: 20px; }

@media (max-width: 600px) {
    .input-row { flex-direction: column; gap: 20px; }
    .main-headline { font-size: 28px; }
}