/* ============================================
   Feedback Form — Desktop Redesign
   ============================================ */

/* --- Page Title & Subtitle --- */
.fb-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 18px 5px 8px;
    letter-spacing: -0.3px;
}

.fb-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 auto 20px;
    max-width: 680px;
}

/* --- Card Container --- */
.fb-card {
    max-width: 720px;
    margin: 0 auto 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    text-align: left;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
}

/* --- Form Fields --- */
.fb-field {
    margin-bottom: 20px;
}

.fb-field label {
    font-family: 'Inter', sans-serif;
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

/* --- Side-by-side row --- */
.fb-row-pair {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.fb-row-pair .fb-field {
    flex: 1;
    margin-bottom: 0;
}

/* --- Inputs --- */
#feedback_form input[type="text"],
#feedback_form textarea,
#feedback_form select {
    font-family: 'Inter', sans-serif;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#feedback_form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 0 1 .708-.708L6 7.617l3.646-3.646a.5.5 0 0 1 .708.708l-4 4A.5.5 0 0 1 6 8.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

#feedback_form textarea {
    height: auto;
    min-height: 140px;
    max-width: 100% !important;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.5;
}

#feedback_form input[type="text"]:focus,
#feedback_form textarea:focus,
#feedback_form select:focus {
    border-color: #00a2ff;
    box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.1);
}

#feedback_form input[type="text"]::placeholder,
#feedback_form textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* --- Footer (reCAPTCHA + Submit) --- */
.fb-footer {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#feedback_form #grecap {
    text-align: center;
}

#feedback_form .g-recaptcha>div {
    margin: 0 auto;
}

/* --- Submit Button --- */
.fb-submit-btn {
    font-family: 'Inter', sans-serif;
    display: block;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #00a2ff 0%, #0081ca 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 162, 255, 0.3);
    letter-spacing: 0.3px;
}

.fb-submit-btn:hover {
    background: linear-gradient(135deg, #0090e5 0%, #006db5 100%);
    box-shadow: 0 4px 14px rgba(0, 162, 255, 0.4);
    transform: translateY(-1px);
}

.fb-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 162, 255, 0.3);
}

/* --- Validation overrides --- */
#feedback_form .form-error,
#feedback_form .help-block.form-error {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

/* --- Error div --- */
#error_div {
    max-width: 720px;
    margin: 0 auto;
}

/* --- Success State --- */
.fb-success {
    max-width: 720px;
    margin: 20px auto 30px;
    padding: 50px 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.fb-success__icon {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1;
}

.fb-success__message {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.6;
    margin: 0 0 30px;
}

.fb-success__btn {
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 46px;
    padding: 0 32px;
    background: #fff;
    color: #00a2ff;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #00a2ff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.fb-success__btn:hover {
    background: #00a2ff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 162, 255, 0.3);
    transform: translateY(-1px);
}

.fb-success__btn:active {
    transform: translateY(0);
}

/* --- Entrance Animation --- */
@keyframes fbSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fb-card--animate {
    animation: fbSlideUp 0.5s ease-out both;
}