/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 15px 10px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
}

/* Intro Section */
.intro {
    text-align: center;
    margin: 20px auto;
    padding: 0 20px;
    max-width: 500px;
}

.intro h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1rem;
    opacity: 0.85;
}

/* Form Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.questionnaire {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    max-width: 500px;
    width: 90%;
    margin-bottom: 30px;
}

.question {
    margin-bottom: 20px;
}

.question label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Options */
.options {
    display: flex;
    gap: 10px;
}

.options input[type="radio"] {
    display: none;
}

.btn-option {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
}

.btn-option:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Selected State */
.options input[type="radio"]:checked + .btn-option {
    background: #fff;
    color: #7b2ff7;
    border-color: #fff;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #7b2ff7;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.submit-btn:hover {
    background: #fdf0ff;
}

/* Loading Screen */
.loading-screen {
    text-align: center;
    margin-top: 50px;
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results {
    text-align: center;
    padding: 20px;
}

.match-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.match-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    width: 200px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.match-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.chat-btn {
    background: #fff;
    color: #7b2ff7;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-btn:hover {
    background: #fdf0ff;
}

.back-btn {
    margin-top: 15px;
    padding: 10px 15px;
    background: #fff;
    color: #f107a3;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.back-btn:hover {
    background: #ffe5f5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 500px) {
    .btn-option {
        font-size: 0.9rem;
    }
}
