﻿/* ==========================================================================
   Feedback Page Base
   ========================================================================== */
/* ==========================================================================
   Global Page Header (Banners)
   ========================================================================== */
.page-header {
    position: relative;
    background-color: var(--primary-blue);
    color: var(--white) !important; /* Ensure text is always white */
    padding: 80px 20px;
    text-align: center;
    border-bottom: 5px solid var(--primary-red);
    overflow: hidden; 
}

.page-header h1, .page-header p {
    color: var(--white) !important;
}

.page-header::before {
    content: "";
    position: absolute;
    top: -15px; left: -15px; right: -15px; bottom: -15px;
    background: url('header bg.jpg') center/cover no-repeat;
    filter: blur(8px); 
    opacity: 0.25; 
    z-index: 1;
}

.page-header .container { 
    position: relative; 
    z-index: 2; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.feedback-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Zone Headers */
.zone-header { margin-bottom: 30px; padding-bottom: 15px; }
.zone-header.border-blue { border-bottom: 3px solid var(--primary-blue); }
.zone-header.border-red { border-bottom: 3px solid var(--primary-red); }
.zone-header.border-yellow { border-bottom: 3px solid var(--secondary-yellow); }

.zone-header h2 { font-size: 1.8rem; color: var(--dark-text); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.zone-header p { color: #6b7280; font-size: 1.05rem; }

.mt-50 { margin-top: 60px; }
.mb-50 { margin-bottom: 60px; }

/* Feedback Grid & Cards */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.feedback-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.icon-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.bg-light-blue { background: #eff6ff; }
.bg-light-red { background: #fef2f2; }
.bg-light-yellow { background: #fefce8; }
.text-yellow { color: #d97706; }

.feedback-card h3 { font-size: 1.15rem; color: var(--primary-blue); margin-bottom: 15px; line-height: 1.4; }

.btn-text {
    font-size: 0.9rem; font-weight: 600; color: #6b7280;
    transition: color 0.3s; display: inline-flex; align-items: center; gap: 5px;
}
.feedback-card:hover .btn-text { color: var(--primary-red); }
/* ==========================================================================
   Text & Select Inputs for Forms
   ========================================================================== */
.custom-text-input, .custom-select-input {
    width: 100%; 
    padding: 14px 20px; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px;
    font-family: inherit; 
    font-size: 0.95rem; 
    background: #f9fafb; 
    color: #4b5563;
    transition: all 0.2s ease;
}

.custom-text-input:focus, .custom-select-input:focus {
    outline: none; 
    border-color: var(--primary-blue); 
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}
/* ==========================================================================
   The Shape-Shifter Modal
   ========================================================================== */
.form-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 31, 63, 0.85); /* Deep dark blue overlay */
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
}

.form-modal-overlay.active { opacity: 1; visibility: visible; }

.form-modal-box {
    background: var(--white);
    width: 100%; max-width: 700px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex; flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.form-modal-overlay.active .form-modal-box { transform: translateY(0); }

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex; justify-content: space-between; align-items: center;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 { color: var(--primary-blue); font-size: 1.3rem; margin: 0; }

.close-modal-btn {
    background: none; border: none; font-size: 2rem; color: #9ca3af;
    cursor: pointer; line-height: 1; transition: color 0.3s;
}
.close-modal-btn:hover { color: var(--primary-red); }

.modal-body {
    padding: 30px;
    overflow-y: auto; /* Allows scrolling inside the form */
}

/* ==========================================================================
   Premium Likert Scale Form UI (Tappable Blocks)
   ========================================================================== */
.question-block {
    margin-bottom: 35px;
}

.question-block h4 {
    font-size: 1.05rem;
    color: var(--dark-text);
    margin-bottom: 15px;
    line-height: 1.5;
}

.options-grid {
    display: grid; gap: 10px;
}

.custom-radio {
    position: relative;
}

.custom-radio input[type="radio"] {
    position: absolute; opacity: 0; cursor: pointer;
}

.custom-radio label {
    display: block;
    padding: 14px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem; color: #4b5563;
    transition: all 0.2s ease;
}

/* Hover State */
.custom-radio label:hover { background: #f3f4f6; border-color: #cbd5e1; }

/* Selected State */
.custom-radio input[type="radio"]:checked + label {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
    font-weight: 600;
}

/* Textarea input */
.custom-textarea {
    width: 100%; padding: 15px; border: 1px solid #e5e7eb; border-radius: 8px;
    font-family: inherit; font-size: 0.95rem; resize: vertical; min-height: 120px;
}
.custom-textarea:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1); }

/* Success State */
.success-state { text-align: center; padding: 40px 20px; }
.success-state i { font-size: 4rem; color: #10b981; margin-bottom: 20px; }
.success-state h4 { font-size: 1.8rem; color: var(--primary-blue); margin-bottom: 10px; }
.hidden { display: none !important; }
.w-100 { width: 100%; }

.hidden {
    display: none !important;
}

.success-state {
    text-align: center;
    padding: 40px 20px;
}

.success-state i {
    font-size: 4rem;
    color: #10b981; /* A nice success green */
    margin-bottom: 20px;
}

.success-state h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 10px;
}