/* Form Container */
.form-container {
    background: #fff;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-red);
}

.form-intro {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 25px;
    color: #444;
}

/* Form Styles */
.savvy-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

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

label {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    padding: 12px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-size: 16px;
    border-radius: 2px;
    transition: border 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--accent-red);
    background: #fff;
}

input.error {
    border-color: var(--accent-red);
    background: #fff0f0;
}

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

.checkbox-wrapper input {
    margin-top: 3px;
    margin-right: 10px;
}

.checkbox-wrapper label {
    font-weight: normal;
    font-size: 13px;
    cursor: pointer;
}

/* Custom Button */
.custom-submit-btn {
    background-color: #365899;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.custom-submit-btn:hover {
    background-color: #1a252f;
}

/* Error Messages */
.error-msg {
    color: var(--accent-red);
    font-size: 11px;
    margin-top: 4px;
    display: none;
}

.relative-error {
    display: none;
    width: 100%;
    margin-left: 22px;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup-overlay.active {
    opacity: 1;
}

.popup-box {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s;
    overflow: hidden;
}

.popup-overlay.active .popup-box {
    transform: translateY(0);
}

.popup-header {
    background: #f1f1f1;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-family: var(--font-sans);
    color: #333;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

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

.icon-success {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 15px;
}

.popup-body p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 25px;
}

.popup-action-btn {
    background-color:#365899;
    color: #fff;
    padding: 10px 25px;
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
    .article-title {
        font-size: 24px;
    }
}