* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: none;
    line-height: 1.7;
}

body {
    background-color: #f8f9fc;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0V0zm2 2v36h36V2H2zm8 8h2v2h-2v-2zm8 0h2v2h-2v-2zm8 0h2v2h-2v-2zM6 6h2v2H6V6zm8 0h2v2h-2V6zm8 0h2v2h-2V6zm8 0h2v2h-2V6zM6 14h2v2H6v-2zm8 0h2v2h-2v-2zm8 0h2v2h-2v-2zm8 0h2v2h-2v-2zM6 22h2v2H6v-2zm8 0h2v2h-2v-2zm8 0h2v2h-2v-2zm8 0h2v2h-2v-2zM6 30h2v2H6v-2zm8 0h2v2h-2v-2zm8 0h2v2h-2v-2zm8 0h2v2h-2v-2z" fill="%234361ee" fill-opacity="0.03"/></svg>');
    background-size: 40px 40px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Header styles are inherited from styles.css */

/* Mobile menu button and header styles are inherited from menu.css and styles.css */

main {
    min-height: calc(100vh - 400px);
    padding-top: 100px;
    /* Header height + some extra padding */
}


/* Feedback Hero Section */
.feedback-hero {
    position: relative;
    height: 35vh;
    min-height: 220px;
    max-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    width: 100%;
}

.feedback-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/feedback-background.png');
    background-size: contain;
    background-position: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

@keyframes subtleFloat {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 10px 10px;
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.516), rgba(67, 97, 238, 0.7)),
        radial-gradient(circle at bottom right, rgba(58, 12, 163, 0.7), transparent 70%),
        radial-gradient(circle at top left, rgba(67, 97, 238, 0.6), transparent 70%);
    z-index: 0;
    opacity: 0.85;
    transition: opacity 0.5s ease;
    animation: pulseGradient 8s ease-in-out infinite alternate;
}

@keyframes pulseGradient {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.85;
    }

    100% {
        opacity: 0.75;
    }
}

.feedback-hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
    position: relative;
}

.feedback-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
    color: #fff;
    position: relative;
    display: inline-block;
}

.feedback-hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.feedback-hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 1.8rem auto 0;
    max-width: 700px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    letter-spacing: 0.01em;
    word-spacing: 0.05em;
    hyphens: none;
    padding: 0 1rem;
    text-align: center;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growLine {
    0% {
        width: 0;
        opacity: 0;
    }

    100% {
        width: 60px;
        opacity: 1;
    }
}

/* Feedback Section */
.feedback-section {
    padding: 2rem 1rem 3rem;
    position: relative;
}

.feedback-section::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(to bottom, rgba(248, 249, 252, 0), rgba(248, 249, 252, 1));
    pointer-events: none;
    z-index: -1;
}

.feedback-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    padding: 2.5rem 2rem;
    background-color: white;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeIn 1s ease-out;
}

.feedback-intro:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.feedback-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    display: block;
    animation: bounceIn 0.7s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.feedback-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    letter-spacing: 0.02em;
    font-family: 'Montserrat', sans-serif;
}

.feedback-intro h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.feedback-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    max-width: 85%;
    margin: 0 auto;
    letter-spacing: 0.01em;
}

/* Feedback Container */
.feedback-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
    align-items: start;
    position: relative;
}

.feedback-form-container {
    background-color: white;
    border-radius: var(--card-border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
    animation: slideInFromLeft 0.8s ease-out;
}

.feedback-form-container:focus-within {
    box-shadow: var(--shadow-hover);
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.feedback-form-container:hover {
    box-shadow: var(--shadow-hover);
}

.feedback-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    z-index: 2;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: 'Montserrat', sans-serif;
}

/* Form Styles */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Form Progress Indicator */
.form-progress {
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-progress-bar {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    position: relative;
}

.form-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.form-group {
    position: relative;
    margin-bottom: 1.75rem;
    transition: var(--transition);
}

.form-group:focus-within {
    transform: translateY(-2px);
}

.form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.02), rgba(58, 12, 163, 0.02));
    border-radius: var(--button-border-radius);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.form-group:focus-within::before {
    opacity: 1;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #444;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.form-group label i {
    margin-right: 8px;
    color: #888;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group:focus-within label {
    color: var(--primary-color);
}

.form-group:focus-within label i {
    color: var(--primary-color);
}

/* Input with icon styling */
.input-with-icon,
.textarea-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

/* Hide the original icons in the inputs */
.input-with-icon i,
.textarea-with-icon i {
    display: none;
}

/* Removed textarea icon positioning */

/* Enhanced Form Field Styles */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--button-border-radius);
    background-color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    color: #222;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    background-color: white;
    transform: translateY(-2px);
}

/* Focus styles now handled by label i selectors */

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23888888' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

/* Form validation styling */
.form-group input:invalid:focus,
.form-group textarea:invalid:focus,
.form-group select:invalid:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
    border-color: var(--success-color);
}

.form-group input:valid:focus,
.form-group textarea:valid:focus,
.form-group select:valid:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.form-field-feedback {
    display: none;
    font-size: 0.85rem;
    color: var(--error-color);
    margin-top: 0.4rem;
    animation: fadeIn 0.3s ease-out;
}

.form-field-feedback.active {
    display: block;
}

/* Emoji Satisfaction Rating */
.emoji-rating-container {
    position: relative;
    padding: 0.5rem;
    border-radius: var(--card-border-radius);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.emoji-rating-container:focus-within {
    background-color: rgba(67, 97, 238, 0.01);
}

.emoji-rating-title {
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    color: #444;
    position: relative;
    text-align: center;
    font-size: 1rem;
}

.emoji-rating {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    max-width: 450px;
    margin: 0 auto;
    padding: 1.25rem 0.5rem 1rem;
    background-color: #f9f9f9;
    border-radius: var(--button-border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset;
}

.emoji-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem;
    width: 20%;
    min-width: 60px;
    height: 100%;
}

.emoji-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.emoji-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.6;
    user-select: none;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 3rem;
    margin-bottom: 0.25rem;
}

.emoji-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #777;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    font-weight: 500;
    width: 100%;
    height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-option:hover {
    background-color: transparent;
}

.emoji-option:hover .emoji-icon {
    transform: scale(1.2);
    filter: grayscale(0);
    opacity: 0.9;
}

.emoji-option:hover .emoji-label {
    opacity: 1;
}

.emoji-option input:checked+.emoji-icon {
    transform: scale(1.3);
    filter: grayscale(0);
    opacity: 1;
}

.emoji-option input:checked~.emoji-label {
    opacity: 1;
    color: #333;
    font-weight: 600;
}

.emoji-option input:checked {
    background-color: transparent;
}

/* Focus state for accessibility */
.emoji-option input:focus-visible+.emoji-icon {
    outline: none;
}

/* Animation for selected emoji */
@keyframes bounce {

    0%,
    100% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.5);
    }
}

.emoji-option input:checked+.emoji-icon {
    animation: bounce 0.4s ease-in-out;
}

.emoji-option.selected {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(58, 12, 163, 0.05));
    border-radius: 8px;
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feedback-hero {
        height: 30vh;
        min-height: 200px;
        max-height: 300px;
    }

    .feedback-hero-title {
        font-size: 2.5rem;
    }

    .feedback-hero-subtitle {
        font-size: 1.1rem;
        margin-top: 1.2rem;
        line-height: 1.6;
        padding: 0 1.5rem;
        max-width: 90%;
    }

    .emoji-rating {
        max-width: 100%;
        padding: 0.75rem 0.25rem;
    }

    .thank-you-message {
        padding: 2rem 1.5rem;
        max-width: 95%;
        margin: 0 auto 1.5rem;
    }

    .thank-you-message i {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }

    .thank-you-message h3 {
        font-size: 1.6rem;
    }

    .thank-you-message p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .form-group label {
        font-size: 0.9rem;
    }

    .form-group label i {
        font-size: 0.9rem;
        margin-right: 6px;
    }

    .feedback-hero {
        height: 28vh;
        min-height: 180px;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .feedback-hero-background {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .feedback-hero-title {
        font-size: 2.2rem;
    }

    .feedback-hero-title::after {
        width: 70px;
        height: 3px;
    }

    .feedback-hero-subtitle {
        font-size: 1rem;
        margin-top: 1.2rem;
        line-height: 1.5;
        padding: 0 1rem;
        max-width: 95%;
    }

    .emoji-rating {
        flex-wrap: nowrap;
        overflow-x: visible;
        width: 100%;
        max-width: 100%;
        padding: 1rem 0.25rem;
        gap: 0.1rem;
    }

    .emoji-option {
        min-width: 50px;
        padding: 0.4rem 0.2rem;
    }

    .emoji-icon {
        font-size: 2rem;
        height: 2.5rem;
    }

    .emoji-label {
        font-size: 0.7rem;
        height: 2.8em;
        margin-top: 0.3rem;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .feedback-hero {
        height: 25vh;
        min-height: 160px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .feedback-hero-background {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .feedback-hero-title {
        font-size: 1.8rem;
    }

    .feedback-hero-title::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }

    .feedback-hero-subtitle {
        font-size: 0.95rem;
        margin-top: 1rem;
        line-height: 1.5;
        padding: 0 0.8rem;
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .feedback-hero-title {
        font-size: 1.7rem;
    }

    .feedback-hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 0.8rem;
        max-width: 100%;
        margin-top: 1rem;
    }
}

/* Consent checkbox */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

.consent-checkbox:focus-within {
    background-color: transparent;
    padding: 0.5rem;
}

.consent-checkbox input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    position: relative;
    top: 3px;
}

.consent-checkbox input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.consent-checkbox label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

/* Submit Button Enhanced Style */
.submit-btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    background: var(--gradient);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
    margin-top: 1.5rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover:before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.submit-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.submit-btn.loading .btn-content {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: flex;
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading .btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Contact Info Card */
.feedback-contact-info {
    background-color: white;
    border-radius: var(--card-border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    animation: slideInFromRight 0.8s ease-out;
    height: fit-content;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.feedback-contact-info:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.feedback-contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    background: var(--hero-gradient);
    padding: 1.5rem;
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
    color: white;
    text-align: center;
    flex-direction: column;
}

.feedback-contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent),
        radial-gradient(circle at bottom right, rgba(58, 12, 163, 0.3), transparent 70%),
        radial-gradient(circle at top left, rgba(67, 97, 238, 0.2), transparent 70%);
    opacity: 1;
    z-index: -1;
}

.feedback-contact-icon {
    font-size: 2rem;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
    position: relative;
}

.feedback-contact-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
    font-family: 'Montserrat', sans-serif;
}

.feedback-contact-info>p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 0.5rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Contact Methods */
.feedback-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.feedback-contact-method {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.8rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-left: 3px solid transparent;
}

.feedback-contact-method:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(67, 97, 238, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.feedback-contact-method:hover:before {
    transform: translateX(100%);
}

.feedback-contact-method:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
    border-left: 3px solid var(--primary-color);
}

.feedback-contact-method:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    background-color: #f0f0f0;
}

.feedback-contact-method i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.feedback-contact-method:hover i {
    background-color: var(--secondary-color);
    transform: none;
}

.feedback-contact-method span {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    white-space: normal;
    word-break: break-word;
    letter-spacing: 0.01em;
}

/* Social Links */
.feedback-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.feedback-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    color: var(--dark-color);
    transition: var(--transition);
    text-decoration: none;
}

.feedback-social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.feedback-social-icon:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
    padding: 2rem 0;
    position: relative;
}

.faq-section h2 {
    text-align: center;
    color: var(--dark-color);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.02em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.faq-item {
    background: white;
    border-radius: var(--card-border-radius);
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(67, 97, 238, 0.1);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    padding: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    letter-spacing: 0.01em;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.faq-question i {
    font-size: 0.9rem;
    color: #555;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.faq-item .faq-question[aria-expanded="true"] {
    color: var(--primary-color);
    font-weight: 700;
}

.faq-item .faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.3rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    line-height: 1.7;
    color: #555;
    letter-spacing: 0.01em;
    font-size: 1rem;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.7;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.faq-item .faq-answer[aria-hidden="false"] {
    padding: 0 1.3rem 1.3rem;
    max-height: 500px;
    border-top: 1px solid #eee;
}

.faq-item .faq-answer[aria-hidden="false"] p {
    opacity: 1;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 992px) {
    .feedback-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feedback-contact-info {
        order: -1;
        margin-bottom: 1rem;
    }

    .feedback-form-container {
        animation: slideInFromBottom 0.8s ease-out;
    }

    @keyframes slideInFromBottom {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

/* Responsive styles for FAQ section */
@media (max-width: 768px) {
    .feedback-section {
        padding: 1.5rem 0.5rem 2.5rem;
    }

    .feedback-intro {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .feedback-intro h2 {
        font-size: 2rem;
    }

    .feedback-intro p {
        font-size: 1rem;
        max-width: 95%;
    }

    .feedback-container {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }

    .feedback-form-container,
    .feedback-contact-info {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .faq-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .faq-question {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .faq-item .faq-answer[aria-hidden="false"] {
        padding: 0 1.2rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .faq-section {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }

    .faq-section h2 {
        font-size: 1.6rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-question i {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .faq-question {
        padding: 1rem 0.9rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 0.9rem;
        font-size: 0.85rem;
    }

    .faq-item .faq-answer[aria-hidden="false"] {
        padding: 0 0.9rem 0.9rem;
    }
}

/* Thank You Message */
.thank-you-message {
    background: linear-gradient(to right, #02801b, #04be29);
    border: none;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: none;
    position: relative;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    z-index: 1000;
}


.thank-you-message i {
    font-size: 4rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    display: block;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-message h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.8rem;
}

.thank-you-message p {
    color: var(--light-color);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-message.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
    animation: popIn 0.5s ease forwards;
}


@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.8);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile responsiveness for thank you message */
@media (max-width: 768px) {
    .thank-you-message {
        padding: 2rem;
        max-width: 90%;
    }

    .thank-you-message i {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }

    .thank-you-message h3 {
        font-size: 1.6rem;
    }

    .thank-you-message p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .thank-you-message {
        padding: 1.8rem 1.5rem;
        max-width: 95%;
        margin: 1rem auto;
    }

    .thank-you-message i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .thank-you-message h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .thank-you-message p {
        font-size: 0.95rem;
        max-width: 100%;
    }
}

/* Form error */
.form-error {
    background-color: #fff0f0;
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: var(--button-border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--error-color);
    display: none;
    animation: shakeError 0.4s ease-in-out;
    font-weight: 500;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.field-help {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.4rem;
    margin-left: 0.2rem;
    line-height: 1.7;
}

/* Form focus states for accessibility */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.25);
}

/* High contrast mode support */
@media (forced-colors: active) {
    .star-rating label i {
        forced-color-adjust: none;
    }

    .submit-btn,
    input[type="checkbox"],
    input[type="radio"] {
        forced-color-adjust: none;
    }

    /* Ensure focus indicators are visible */
    *:focus {
        outline: 3px solid SelectedItem !important;
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .feedback-container {
        grid-template-columns: 1fr;
    }

    .feedback-hero-title {
        font-size: 2.5rem;
    }

    .feedback-contact-info {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .feedback-section {
        padding: 2rem 0.75rem;
    }

    .feedback-intro {
        padding: 2rem 1.5rem;
        width: 95%;
        max-width: 95%;
    }

    .feedback-intro h2 {
        font-size: 2rem;
    }

    .feedback-intro p {
        font-size: 1.05rem;
        max-width: 95%;
    }

    .feedback-container {
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding: 0 0.25rem;
        width: 100%;
    }

    input:focus,
    textarea:focus,
    select:focus {
        font-size: 16px;
        /* Prevents zoom on iPhone */
    }

    .feedback-form-container {
        padding: 1.8rem 1.2rem;
        width: 100%;
    }

    .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .feedback-contact-header {
        padding: 1.2rem;
    }

    .feedback-contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .feedback-contact-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .feedback-section {
        padding: 2rem 0.5rem;
    }

    .feedback-hero {
        height: 250px;
    }

    .feedback-hero-title {
        font-size: 2rem;
    }

    .feedback-hero-subtitle {
        font-size: 1.1rem;
        margin-top: 1.5rem;
        line-height: 1.6;
    }

    .feedback-intro {
        padding: 1.8rem 1.2rem;
        margin-bottom: 2rem;
        width: 98%;
        max-width: 98%;
    }

    .feedback-intro h2 {
        font-size: 1.8rem;
    }

    .feedback-intro p {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }

    .feedback-container {
        padding: 0 0.1rem;
        width: 100%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .feedback-form-container {
        padding: 1.5rem 1rem;
        width: 100%;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem 1rem;
    }

    .input-with-icon i,
    .textarea-with-icon i {
        right: 12px;
        font-size: 0.9rem;
    }

    .star-rating label {
        font-size: 1.6rem;
    }

    .thank-you-message {
        padding: 2rem 1.5rem;
        width: 98%;
        max-width: 98%;
    }

    .thank-you-message i {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }

    .thank-you-message h3 {
        font-size: 1.6rem;
    }

    .thank-you-message p {
        font-size: 1rem;
    }

    .feedback-contact-info {
        padding: 1.5rem;
    }

    .feedback-contact-header {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }

    .feedback-contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .feedback-contact-method {
        padding: 0.7rem 0.8rem;
    }

    .feedback-contact-method i {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-right: 0.8rem;
    }
}

@media (max-width: 400px) {
    .feedback-section {
        padding: 2rem 0.25rem;
    }

    .feedback-hero-title {
        font-size: 1.7rem;
    }

    .feedback-hero-subtitle {
        font-size: 1rem;
    }

    .thank-you-message {
        padding: 1.8rem 1.2rem;
        max-width: 100%;
        margin: 0 auto 1.2rem;
    }

    .thank-you-message i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .thank-you-message h3 {
        font-size: 1.4rem;
    }

    .thank-you-message p {
        font-size: 0.95rem;
    }

    .feedback-intro {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .feedback-intro h2 {
        font-size: 1.6rem;
    }

    .feedback-intro .feedback-icon {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }

    .feedback-container {
        padding: 0;
        width: 100%;
        margin: 1rem 0;
    }

    .feedback-form-container {
        padding: 1.2rem 0.8rem;
        border-radius: 8px;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .contact-method span {
        font-size: 0.85rem;
    }

    .faq-question {
        padding: 1rem 0.8rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    .thank-you-message {
        width: 100%;
        max-width: 100%;
        margin: 2rem 0;
        padding: 1.5rem 1rem;
    }

    .feedback-contact-info {
        padding: 1.2rem;
    }

    .feedback-contact-header {
        margin: -1.2rem -1.2rem 0.8rem -1.2rem;
    }

    .feedback-contact-method {
        padding: 0.6rem 0.7rem;
    }

    .feedback-contact-method i {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        margin-right: 0.7rem;
    }

    .feedback-contact-method span {
        font-size: 0.85rem;
    }

    .feedback-social-icon {
        width: 35px;
        height: 35px;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .thank-you-message.show .thank-you-content,
    .thank-you-message {
        transition: none;
    }
}

/* Font Weight Variations */
h1,
h2,
h3 {
    font-weight: 700;
}

p,
li {
    font-weight: 400;
}

.form-group label,
.field-help,
.consent-checkbox label {
    font-weight: 500;
}

/* Improved Text Contrast */
.form-group input,
.form-group textarea,
.form-group select {
    color: #222;
}

.feedback-contact-method span {
    color: #333;
}

.feedback-hero-subtitle {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Improved Button Typography */
.submit-btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    font-family: 'Poppins', sans-serif;
}

/* Return Button Styled Like Home Page - Simplified */
.return-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, #4ade80, #22c55e);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.25);
    margin: 1.5rem auto 0;
    width: auto;
    min-width: 200px;
    max-width: 280px;
    font-family: 'Poppins', sans-serif;
}

.return-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.3);
}

.return-btn:active {
    transform: translateY(0);
}

.return-btn:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 3px;
}

.return-btn i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Mobile responsiveness for the return button */
@media (max-width: 576px) {
    .return-btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
}

@media (max-width: 400px) {
    .return-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-width: 160px;
    }

    .return-btn i {
        font-size: 0.8rem;
    }
}

/* Enhanced Desktop Optimizations for Feedback Page */
@media (min-width: 1200px) {

    /* Improve container width for better desktop experience */
    .container {
        max-width: 1400px;
        width: 90%;
    }

    /* Enhanced feedback container layout */
    .feedback-container {
        grid-template-columns: 3fr 2fr;
        gap: 3rem;
        max-width: 1400px;
        margin: 3rem auto;
        padding: 0 1.5rem;
    }

    /* Improved form container */
    .feedback-form-container {
        padding: 2.5rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        transition: all 0.35s ease;
    }

    .feedback-form-container:hover {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        transform: translateY(-5px);
    }

    /* Enhanced contact info section */
    .feedback-contact-info {
        padding: 2.5rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        position: sticky;
        top: 120px;
    }

    .feedback-contact-header {
        margin: -2.5rem -2.5rem 2rem -2.5rem;
        padding: 2rem;
    }

    /* Enhanced FAQ section */
    .faq-section {
        max-width: 1000px;
        margin: 5rem auto;
        padding: 0 1.5rem;
    }

    .faq-container {
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .faq-item {
        border-radius: 12px;
        transition: all 0.35s ease;
    }

    .faq-item:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        transform: translateY(-3px);
    }

    .faq-question {
        padding: 1.5rem 2rem;
        font-size: 1.1rem;
    }

    .faq-answer {
        padding: 0 2rem 1.5rem;
    }

    /* Enhanced form elements */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
        border-radius: 10px;
    }

    .emoji-rating {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .emoji-icon {
        font-size: 2.5rem;
    }

    /* Enhanced intro section */
    .feedback-intro {
        max-width: 900px;
        padding: 3rem 2.5rem;
        margin: 0 auto 3rem;
        border-radius: 12px;
    }

    .feedback-icon {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .feedback-intro h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .feedback-intro p {
        font-size: 1.2rem;
        max-width: 80%;
    }

    /* Enhanced hero section */
    .feedback-hero {
        height: 40vh;
        min-height: 400px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .feedback-hero-background {
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .feedback-hero-content {
        max-width: 1000px;
    }

    .feedback-hero-title {
        font-size: 3.5rem;
    }

    .feedback-hero-subtitle {
        font-size: 1.5rem;
        max-width: 800px;
        margin-top: 2rem;
    }

    /* Enhanced submit button */
    .submit-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
        border-radius: 12px;
    }
}

/* Additional enhancements for larger screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }

    .feedback-container {
        max-width: 1600px;
        gap: 4rem;
    }

    .faq-section {
        max-width: 1200px;
    }
}