/* IFAG Contact Form 7 - Sidebar Prestige Look */
.ifag-cf7-container {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Header will handle its own padding */
}

/* Header Area */
.ifag-cf7-container::before {
    content: '';
    display: block;
    height: 6px;
    background: #d5263d; /* IFAG Red accent line at top */
}

.ifag-cf7-title-wrapper {
    background: #fdf2f3;
    padding: 30px 25px;
    text-align: center;
    border-bottom: 1px solid #fbe3e5;
}

.ifag-cf7-title {
    margin: 0 !important;
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
}

.ifag-cf7-subtitle {
    margin: 8px 0 0 0 !important;
    font-size: 0.85rem;
    color: #d5263d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Body */
.ifag-cf7-container .wpcf7 {
    padding: 30px 25px;
}

.ifag-cf7-container .wpcf7-form p {
    margin-bottom: 20px !important;
}

.ifag-cf7-container label {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ifag-cf7-container input:not([type="submit"]),
.ifag-cf7-container textarea,
.ifag-cf7-container select {
    width: 100% !important;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #111;
    transition: all 0.3s ease;
}

.ifag-cf7-container input:focus,
.ifag-cf7-container textarea:focus {
    background: #fff;
    border-color: #d5263d;
    box-shadow: 0 0 0 4px rgba(213, 38, 61, 0.08);
    outline: none;
}

/* Submit Button - The "Call to Action" */
.ifag-cf7-container input[type="submit"] {
    width: 100% !important;
    background: #d5263d;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(213, 38, 61, 0.25);
}

.ifag-cf7-container input[type="submit"]:hover {
    background: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Success/Error Messages */
.ifag-cf7-container .wpcf7-response-output {
    margin: 15px 0 0 0 !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    font-size: 0.85rem;
    border: none !important;
    text-align: center;
}

.wpcf7-form.sent .wpcf7-response-output {
    background: #ecfdf5 !important;
    color: #065f46 !important;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

/* Spinner Adjust */
.ifag-cf7-container .wpcf7-spinner {
    position: absolute;
    bottom: 20px;
    right: 20px;
}
