/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #F4D03F;
    background: #000000;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #1a1a1a;
    border-bottom: 2px solid #F4D03F;
    box-shadow: 0 2px 20px rgba(244, 208, 63, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

.nav-link {
    text-decoration: none;
    color: #F4D03F;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #F4D03F;
    border-radius: 5px;
}

.nav-link:hover {
    background: #F4D03F;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 208, 63, 0.4);
}

/* Survey Section */
.survey-section {
    margin-top: 120px;
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    min-height: 100vh;
}

.survey-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid #F4D03F;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(244, 208, 63, 0.2);
}

/* Survey Header */
.survey-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(244, 208, 63, 0.3);
}

.survey-logo {
    margin-bottom: 2rem;
}

.survey-logo img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.survey-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #F4D03F;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(244, 208, 63, 0.4);
    line-height: 1.3;
}

/* Survey Form */
.survey-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Question Block */
.question-block {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(244, 208, 63, 0.2);
    transition: all 0.3s ease;
}

.question-block:hover {
    border-color: rgba(244, 208, 63, 0.5);
    box-shadow: 0 5px 20px rgba(244, 208, 63, 0.1);
}

.question-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #F4D03F;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.3);
}

.required {
    color: #ff6b6b;
    margin-left: 0.3rem;
}

/* Matrix Table */
.matrix-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
}

.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.matrix-table thead tr {
    background: linear-gradient(135deg, #F4D03F 0%, #e6c53f 100%);
}

.matrix-table th {
    padding: 1rem 0.5rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #000000;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.matrix-table th.matrix-corner {
    background: transparent;
    border: none;
}

.matrix-table tbody tr {
    transition: all 0.3s ease;
}

.matrix-table tbody tr:hover {
    background: rgba(244, 208, 63, 0.05);
}

.matrix-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.matrix-table tbody tr:nth-child(even):hover {
    background: rgba(244, 208, 63, 0.05);
}

.matrix-table td {
    padding: 1rem 0.5rem;
    text-align: center;
    border: 1px solid rgba(244, 208, 63, 0.1);
    color: #cccccc;
}

.matrix-table td.matrix-row-label {
    text-align: left;
    font-weight: 500;
    color: #F4D03F;
    padding-left: 1rem;
    min-width: 300px;
}

/* Radio Buttons */
.matrix-table input[type="radio"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #F4D03F;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
}

.matrix-table input[type="radio"]:hover {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
    transform: scale(1.1);
}

.matrix-table input[type="radio"]:checked {
    background: #F4D03F;
    border-color: #F4D03F;
    box-shadow: 0 0 15px rgba(244, 208, 63, 0.7);
}

.matrix-table input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #000000;
    border-radius: 50%;
}

/* Text Input */
.text-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(244, 208, 63, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.text-input:focus {
    outline: none;
    border-color: #F4D03F;
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.text-input:valid:not(:placeholder-shown) {
    border-color: rgba(76, 175, 80, 0.5);
}

/* Textarea */
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(244, 208, 63, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea:focus {
    outline: none;
    border-color: #F4D03F;
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

/* Submit Button */
.submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(135deg, #F4D03F 0%, #e6c53f 100%);
    color: #000000;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(244, 208, 63, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 208, 63, 0.6);
    background: linear-gradient(135deg, #ffffff 0%, #F4D03F 100%);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #000000;
    color: #F4D03F;
    padding: 3rem 0 2rem;
    border-top: 3px solid #F4D03F;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-logo h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F4D03F;
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.3);
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(244, 208, 63, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #cccccc;
}

.contact-item i {
    color: #ffffff;
    width: 20px;
    text-shadow: 0 0 8px #F4D03F;
}

.footer-bottom {
    border-top: 2px solid #F4D03F;
    padding-top: 2rem;
    text-align: center;
    color: #cccccc;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    margin: 10% auto;
    padding: 3rem;
    border: 3px solid #F4D03F;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 40px rgba(244, 208, 63, 0.5);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 1rem;
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #F4D03F;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(244, 208, 63, 0.5);
}

.modal-content p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.modal-btn {
    background: linear-gradient(135deg, #F4D03F 0%, #e6c53f 100%);
    color: #000000;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(244, 208, 63, 0.6);
}

/* Validation Styles */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 968px) {
    .survey-wrapper {
        padding: 2rem;
    }

    .survey-title {
        font-size: 1.8rem;
    }

    .question-label {
        font-size: 1.1rem;
    }

    .matrix-table-wrapper {
        border-radius: 5px;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 0.8rem 0.3rem;
        font-size: 0.85rem;
    }

    .matrix-table td.matrix-row-label {
        min-width: 200px;
        font-size: 0.9rem;
    }

    .matrix-table input[type="radio"] {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .survey-section {
        margin-top: 100px;
        padding: 2rem 0 4rem;
    }

    .survey-wrapper {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .survey-logo img {
        max-width: 200px;
    }

    .survey-title {
        font-size: 1.5rem;
    }

    .question-block {
        padding: 1.5rem;
    }

    .question-label {
        font-size: 1rem;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 0.6rem 0.2rem;
        font-size: 0.75rem;
    }

    .matrix-table td.matrix-row-label {
        min-width: 150px;
        font-size: 0.8rem;
        padding-left: 0.5rem;
    }

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

    .modal-content {
        padding: 2rem;
        margin: 20% auto;
    }

    .modal-icon {
        font-size: 3.5rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 60px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .survey-section {
        padding: 1.5rem 0 3rem;
    }

    .survey-wrapper {
        padding: 1rem;
    }

    .survey-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .survey-logo img {
        max-width: 150px;
    }

    .survey-title {
        font-size: 1.3rem;
    }

    .question-block {
        padding: 1rem;
    }

    .question-label {
        font-size: 0.95rem;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 0.5rem 0.1rem;
        font-size: 0.7rem;
    }

    .matrix-table td.matrix-row-label {
        min-width: 120px;
        font-size: 0.75rem;
    }

    .matrix-table input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

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

    .modal-content {
        padding: 1.5rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Smooth Transitions */
.question-block,
.matrix-table tbody tr,
input[type="radio"],
textarea,
.submit-btn,
.nav-link {
    transition: all 0.3s ease;
}

/* Focus Styles for Accessibility */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid #F4D03F;
    outline-offset: 3px;
}
