@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff0000; /* Red */
    --primary-light: #ff4d4d;
    --secondary-color: #0055ff; /* Blue */
    --secondary-hover: #0044cc;
    --bg-color: #ffffff; /* White */
    --card-bg: #f9f9f9;
    --text-main: #000000; /* Black */
    --text-muted: #444444;
    --border-color: #ff0000;
    --shadow-sm: 0 4px 6px -1px rgba(255, 0, 0, 0.15), 0 2px 4px -1px rgba(255, 0, 0, 0.05);
    --shadow-md: 4px 4px 0px var(--secondary-color);
    --shadow-lg: 8px 8px 0px var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.15) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(0, 85, 255, 0.15) 0%, transparent 40%);
}

/* Header */
.app-header {
    background-color: #ffffff;
    color: var(--secondary-color);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--primary-color);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-button {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: transform 0.2s ease;
}

.back-button:hover {
    transform: translateX(-3px);
}

.app-title {
    display: flex;
    flex-direction: column;
}

.app-title h1 {
    font-size: 1.75rem;
    font-family: 'Permanent Marker', cursive;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px var(--secondary-color);
    letter-spacing: 1px;
}

.app-title span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
}

/* Subheader */
.subheader {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #ffffff;
    border-bottom: 4px solid var(--primary-color);
    transform: rotate(-1deg);
    margin: 10px -10px;
    box-shadow: var(--shadow-sm);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
    background: transparent;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px; right: -50px; bottom: -50px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,50 Q40,10 70,50 T130,50' fill='none' stroke='%23ff0000' stroke-width='2' opacity='0.2'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.form-card {
    background-color: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    animation: slideUp 0.5s ease-out;
    position: relative;
}

.form-card::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; width: 40px; height: 40px;
    background: var(--secondary-color);
    z-index: -1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instruction-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-family: 'Permanent Marker', cursive;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--text-muted);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 4px 4px 0px var(--primary-color);
    background-color: #f0f0f0;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 1.1rem;
    font-family: 'Permanent Marker', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    box-shadow: 4px 4px 0px #000;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--primary-color);
}

/* iframe Container for Page 2 */
.iframe-container {
    width: 100%;
    max-width: 1000px;
    height: 60vh;
    border: 4px solid var(--primary-color);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 8px 8px 0px var(--secondary-color);
    background: #ffffff;
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Radio Buttons for Page 3 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.radio-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid var(--text-muted);
    border-radius: 0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: var(--secondary-color);
    background-color: #f0f0f0;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    margin-left: 15px;
    color: #000000;
}

.custom-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    background: #ffffff;
}

.radio-option input[type="radio"]:checked + .custom-radio {
    border-color: var(--secondary-color);
}

.radio-option input[type="radio"]:checked + .custom-radio::after {
    content: '';
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 0;
    animation: popIn 0.2s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0) rotate(0deg); }
    80% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    box-shadow: 4px 4px 0px var(--secondary-color);
    background-color: #f9f9f9;
}

/* Footer */
.app-footer {
    background-color: #ffffff;
    color: var(--text-muted);
    border-top: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s, color 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .app-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .button-group {
        flex-direction: column;
    }
}
