:root {
    --primary: #000000;
    --primary-dark: #000000;
    --secondary: #6c757d;
    --light: #e6e5e5;
    --white: #ffffff;
    --dark: #212529;
    --text-muted: #000000;
    --radius: 12px;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(45deg, #7f9196, #647378);
    --rating-highlight: #564fa6;
    --rating-normal: #e9ecef;
    --rating-selected: var(--primary-dark);
}

body {
    margin-top: 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    color: var(--dark);
}


.section-padding {
    padding: 100px 0;
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.section-title {
    margin-bottom: 3rem;
}


.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: var(--gradient-primary);
}


.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
    margin: 1rem auto 0;
}


.feedback-section {
    background: linear-gradient(to bottom, var(--white), var(--light));
}


.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}


.form-container:hover {
    box-shadow: var(--shadow-hover);
}


.form-control {
    min-height: 55px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding-left: 3rem !important;
    transition: all 0.3s ease;
}


.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
}


.form-floating>label {
    padding: 1rem 1rem 1rem 3rem;
    color: var(--text-muted);
}


#feedback-form .form-label {
    display: block;
    text-align: center;
    width: 100%;
}


.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}


.rating-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}


.rating-wrapper input[type="radio"] {
    display: none;
}


.rating-wrapper label {
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rating-normal);
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}


.rating-wrapper label:hover {
    background: var(--rating-highlight);
    color: var(--white);
    transform: scale(1.1);
}


.rating-wrapper label.selected {
    background: var(--rating-selected);
    color: var(--white);
    box-shadow: var(--shadow-hover);
    transform: scale(1.1);
}


.rating-wrapper label.highlight {
    background: #7f9196;
    color: var(--white);
}


.rating-label {
    text-align: center;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-top: 0.75rem;
    font-weight: 500;
}


.submit-btn {
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    background-image: var(--gradient-primary);
    border: none;
    color: var(--white);
}


.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(127, 145, 150, 0.35);
}


.icon-prefix {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    z-index: 3;
}


.form-floating input:focus~.icon-prefix,
.form-floating textarea:focus~.icon-prefix {
    color: var(--primary-dark);
}

.centered-title {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.centered-title h1 {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    position: relative;
    padding: 10px 0;
}

.centered-title h1::before,
.centered-title h1::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #fa7e7e;
}

.centered-title h1::before {
    top: 0;
    left: 0;
}

.centered-title h1::after {
    bottom: 0;
    right: 0;
}


.back-to-top {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 54px;
    height: 54px;

    clip-path: circle(100% at 100% 100%);

    background: #4f46e5;
    color: #fff;
    border: 0;

    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1050;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .35);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #4338ca;
}

.back-to-top:focus-visible {
    outline: 2px solid #ffffffcc;
    outline-offset: 2px;
}

.back-to-top i {
    display: inline-block;
    transform: translate(6px, 6px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}


.back-to-top {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 54px;
    height: 54px;

    clip-path: circle(100% at 100% 100%);

    background: #7f9196;
    color: #fff;
    border: 0;

    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1050;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .35);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #7f9196;
}

.back-to-top:focus-visible {
    outline: 2px solid #ffffffcc;
    outline-offset: 2px;
}

.back-to-top i {
    display: inline-block;
    transform: translate(6px, 6px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}


.form-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.thank-you-container {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 500px;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.thank-you-container.visible {
    display: flex;
    opacity: 1;
}

.checkmark-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px auto;
}

.thank-you-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.7rem;
    color: #2c3e50;
    margin-bottom: 12px;
}

.thank-you-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: #555e68;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 450px;
}

.thank-you-btn {
    background: linear-gradient(45deg, #6c757d, #6c757d);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(32, 32, 32, 0.3);
}

.thank-you-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(13, 110, 253, 0.4);
}

.checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 3.5;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    animation: stroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 45px #4CAF50;
    }
}