* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

/* Landing Page Styles */
.landing-page {
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Navbar */
.navbar {
    width: 100%;
    background: transparent;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo a {
    text-decoration: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #667eea;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: transparent;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
}

/* Page Layouts */
.page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.page-content {
    min-height: calc(100vh - 80px);
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.container-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.page-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Floating Feedback Button */
.feedback-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    user-select: none;
    touch-action: none;
    padding: 0;
}

.message-bubble {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.message-bubble::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 20px 0;
    transform: rotate(-10deg);
}

.feedback-icon {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid white;
    position: relative;
    z-index: 1;
}

.feedback-bubble:hover .message-bubble {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.feedback-bubble:active {
    cursor: grabbing;
}

.feedback-bubble.dragging {
    cursor: grabbing;
    opacity: 0.8;
}

/* Thank you message attached to icon */
.thank-you-message {
    position: fixed;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    color: #333;
    z-index: 999;
    animation: slideIn 0.3s ease;
    white-space: nowrap;
    display: none;
    pointer-events: none;
}

.thank-you-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: auto;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

/* Form Wrapper */
.form-wrapper {
    padding: 35px;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-wrapper h2 {
    color: #333;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-of-type {
    margin-bottom: 32px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.optional {
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    color: #333;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

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

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

.message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Small popup message */
.message.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    text-align: center;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-content h1 {
        font-size: 2.5rem;
    }

    .page-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 4%;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .page-content {
        padding: 0 4%;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .page-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .feedback-bubble {
        width: 70px;
        height: 70px;
        bottom: 20px;
        right: 20px;
    }

    .feedback-icon {
        width: 42px;
        height: 42px;
    }

    .form-wrapper {
        padding: 30px 20px;
        padding-top: 60px;
    }

    .form-wrapper h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 3%;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 0.6rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

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

    .hero-description {
        font-size: 0.9rem;
    }

    .page-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .page-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .feedback-bubble {
        width: 65px;
        height: 65px;
        bottom: 15px;
        right: 15px;
    }

    .feedback-icon {
        width: 38px;
        height: 38px;
    }
}

#madal-container {
    /* No background - transparent */
}

/* Very small screens */
@media (max-width: 360px) {
    .nav-links {
        gap: 0.4rem;
        font-size: 0.7rem;
    }

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

    .page-content h1 {
        font-size: 1.5rem;
    }
}
