﻿@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    background: linear-gradient(135deg, #FFDE21 0%, #FFE862 50%, #FFCC00 100%);
    min-height: 100vh;
}

.full-screen-preview {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFDE21 0%, #FFE862 50%, #FFCC00 100%);
    position: relative;
    overflow-x: hidden;
}

.full-screen-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
    background-size: 100px 100px, 120px 120px, 80px 80px;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Decorative Elements */
.full-screen-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.invalid-feedback.custom-small {
    font-size: 0.8rem;
    margin-top: 2px;
    color: red;
}

html {
    scroll-behavior: smooth;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

/*header and navbar*/
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    border-bottom: 3px solid rgba(255, 222, 33, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.nav-logo {
    font-size: 2.1rem;
    font-weight: 500;
    color: #482ff7;
}

.logo-image {
    width: 290px;
    height: 55px;
    overflow: hidden;
    margin-top: -6px;
    transition: all 0.3s ease;
}

.logo-image img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-image:hover img {
    transform: scale(1.05);
}

/* Modern Card Styles */
.card {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border-radius: 2.5rem !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15), 
        0 20px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 222, 33, 0.2), transparent);
    transition: left 0.6s;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.2), 
        0 30px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card:hover::before {
    left: 100%;
}

/* Card Content Styling */
.card-body {
    position: relative;
    z-index: 2;
}

.card-title {
    color: #333 !important;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-text {
    color: #555 !important;
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.card-text p {
    margin-bottom: 1.2rem;
}

.card-text h6 {
    color: #007bff !important;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Privacy Notice Enhancement */
.privacy-notice {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(255, 222, 33, 0.1));
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    font-size: 0.9rem;
    color: #495057;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.privacy-notice::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #007bff, #FFDE21);
    border-radius: 0 0 0 15px;
}

/* Consent Question Styling */
.consent-question {
    background: linear-gradient(135deg, rgba(255, 222, 33, 0.1), rgba(0, 123, 255, 0.05));
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid rgba(255, 222, 33, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Enhanced Button Styles */
.btn {
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Success Button (ยินยอม) */
.btn[style*="28a745"], .allowBtn, .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997, #17a2b8) !important;
    color: white !important;
    box-shadow: 
        0 8px 25px rgba(40, 167, 69, 0.4),
        0 4px 10px rgba(255, 222, 33, 0.2);
}

.btn[style*="28a745"]:hover, .allowBtn:hover, .btn-success:hover {
    background: linear-gradient(135deg, #218838, #1aa085, #138496) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(40, 167, 69, 0.5),
        0 8px 15px rgba(255, 222, 33, 0.3);
    color: white !important;
}

/* Danger Button (ไม่ยินยอม) */
.btn[style*="dc3545"], .btn-danger {
    background: linear-gradient(135deg, #dc3545, #fd7e14, #ffc107) !important;
    color: white !important;
    box-shadow: 
        0 8px 25px rgba(220, 53, 69, 0.4),
        0 4px 10px rgba(255, 222, 33, 0.2);
}

.btn[style*="dc3545"]:hover, .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #e8690b, #e0a800) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(220, 53, 69, 0.5),
        0 8px 15px rgba(255, 222, 33, 0.3);
    color: white !important;
}

/* Icon Enhancement */
.fas {
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.fas.fa-clipboard-list {
    background: linear-gradient(135deg, #007bff, #FFDE21);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.3));
}

/* Button Container */
.d-grid.gap-3 {
    gap: 1.5rem !important;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .logo-image {
        width: 220px;
        height: 42px;
    }
    
    .card {
        margin: 1rem;
        border-radius: 2rem !important;
    }
    
    .card-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
        width: 100%;
        margin: 8px 0;
        min-width: unset;
    }
    
    .d-grid.gap-3 {
        gap: 1rem !important;
    }
}

@media only screen and (max-width: 480px) {
    .logo-image {
        width: 200px;
        height: 38px;
    }
    
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .card {
        border-radius: 1.5rem !important;
        margin: 0.5rem;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
    
    .privacy-notice, .consent-question {
        padding: 15px;
        margin: 15px 0;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.card {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Visual Enhancements */
.main-section {
    position: relative;
    z-index: 1;
}

/* Subtle hover effects for interactive elements */
.card-body:hover .fas.fa-clipboard-list {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}
