/* Container */
.jag-form {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

/* Grid rows */
.jag-row {
    display: grid;
    gap: 24px;
    margin-bottom: 50px;
}

.jag-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .jag-row-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .jag-row-3 {
        grid-template-columns: 1fr;
    }
}

/* Name & phone grids */
.jag-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.jag-phone-grid {
    display: grid;
    /* grid-template-columns: 70px 1fr; */
    gap: 10px;
}
@media (max-width: 640px) {
    .jag-name-grid {
        grid-template-columns: 1fr;
    }
}

/* Fields */
.jag-field { display: block; width: 100%; }
.jag-field label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 10px;
}
.jag-required { color: #e11d48; }

.jag-field input[type="text"],
.jag-field input[type="email"],
.jag-field input[type="tel"],
.jag-field textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 16px 18px;
    font-size: 16px;
    line-height: 1.3;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.jag-field input[type="text"],
.jag-field input[type="email"],
.jag-field input[type="tel"] { height: 56px; }

.jag-field input:focus,
.jag-field textarea:focus {
    border-color: #111111;
    box-shadow: 0 0 0 2px rgba(17,17,17,0.06);
}

/* Budget radios */
.jag-label-row { margin-bottom: 12px; }
.jag-budget-grid {
    display: grid;
    gap: 16px 32px;
    grid-template-columns: repeat(2, minmax(0, 280px));
}
@media (max-width: 640px) {
    .jag-budget-grid { grid-template-columns: 1fr; }
}
.jag-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}
.jag-choice input[type="radio"] { width: 18px; height: 18px; }

/* Textarea */
.jag-field textarea { min-height: 180px; resize: vertical; }

/* Actions */
.jag-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button */
.jag-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffd000;
    border: none;
    color: #111111;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
    font-size: 16px;
    transition: transform .06s ease, filter .15s ease;
}
.jag-btn:hover { filter: brightness(0.98); }
.jag-btn:active { transform: translateY(1px); }
.jag-btn:disabled { opacity: .65; cursor: not-allowed; }

/* Feedback + errors */
.jag-form-feedback { font-size: 15px; min-height: 22px; }
.jag-form-feedback.jag-success { color: #0f766e; }
.jag-form-feedback.jag-error   { color: #b91c1c; }

.jag-field.jag-has-error input,
.jag-field.jag-has-error textarea,
.jag-field.jag-has-error .jag-name-grid input,
.jag-field.jag-has-error .jag-phone-grid input {
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185,28,28,0.08);
}

/* Inline field error text */
.jag-inline-error {
    margin-top: 8px;
    font-size: 13px;
    color: #b91c1c;
    line-height: 1.3;
}