/* JetCode Submeter - Mobile-First Styles */
/* Colors: #E21D26 (red), #FFFFFF (white), #000000 (black) */
/* No gradients anywhere */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #000000;
    background: #FFFFFF;
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: #E21D26;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #E21D26;
    outline-offset: 2px;
}

/* === Logo Area === */
.logo-area {
    text-align: center;
    padding: 32px 0 16px;
}

.jetcode-logo {
    max-width: 200px;
    height: auto;
}

.jetcode-logo-placeholder {
    display: inline-block;
    text-align: center;
}

.jetcode-logo-placeholder .logo-text {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #E21D26;
    letter-spacing: -0.5px;
}

.jetcode-logo-placeholder .logo-sub {
    display: block;
    font-size: 0.85rem;
    color: #000;
    letter-spacing: 2px;
}

/* === Forms === */
.registration-card {
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.registration-card h1 {
    color: #E21D26;
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-align: center;
}

.intro-text {
    color: #555;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #000;
    background: #FFFFFF;
    -webkit-appearance: none;
}

.form-group input:focus {
    border-color: #E21D26;
    outline: none;
}

.field-error {
    display: block;
    color: #E21D26;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    min-height: 48px;
    line-height: 1.3;
    transition: background-color 0.15s, opacity 0.15s;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary {
    background: #E21D26;
    color: #FFFFFF;
    border-color: #E21D26;
}

.btn-primary:hover:not(:disabled) {
    background: #c41922;
    border-color: #c41922;
}

.btn-outline {
    background: #FFFFFF;
    color: #E21D26;
    border-color: #E21D26;
}

.btn-outline:hover:not(:disabled) {
    background: #E21D26;
    color: #FFFFFF;
}

.btn-danger {
    background: #E21D26;
    color: #FFFFFF;
    border-color: #E21D26;
}

.btn-danger:hover:not(:disabled) {
    background: #c41922;
}

.btn-full {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-height: 36px;
}

.btn-success {
    background: #1a8a1a;
    color: #FFFFFF;
    border-color: #1a8a1a;
}

.btn-success:hover:not(:disabled) {
    background: #157015;
}

/* === Alerts === */
.alert {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: #e8f5e9;
    color: #1a6e1a;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #fce4e4;
    color: #b71c1c;
    border: 1px solid #f5c6c6;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

/* === Success Page === */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.success-card {
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 40px 24px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.success-icon-wrapper {
    margin-bottom: 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
}

.success-icon-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circle-draw 0.6s ease forwards;
}

.success-icon-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: check-draw 0.4s 0.4s ease forwards;
}

@keyframes circle-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}

.success-card h1 {
    color: #E21D26;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.success-detail {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.countdown-text {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* === Brochure Section === */
.brochure-section {
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px 20px;
    margin-bottom: 24px;
    text-align: center;
}

.brochure-section h2 {
    color: #E21D26;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.brochure-section p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.brochure-unavailable p {
    color: #888;
}

.btn-download {
    display: inline-block;
}

/* === App Store Section === */
.app-section {
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px 20px;
    margin-bottom: 24px;
    text-align: center;
}

.app-section h2 {
    color: #E21D26;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.app-section p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.app-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-app {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000000;
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    min-height: 44px;
    font-weight: 600;
    min-width: auto;
    flex: 1 1 auto;
    max-width: 180px;
    justify-content: center;
    transition: opacity 0.15s;
}

.btn-app:hover {
    opacity: 0.85;
}

.btn-app .app-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.btn-app .app-icon svg {
    width: 20px;
    height: 20px;
}

.btn-app .app-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.btn-app .app-label-small {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-app .app-label-big {
    font-size: 0.85rem;
    font-weight: 600;
}

/* === Footer === */
.site-footer {
    text-align: center;
    padding: 24px 16px;
    color: #888;
    font-size: 0.8rem;
}

/* === Admin Login === */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 32px 24px;
}

.login-box h1 {
    color: #E21D26;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 24px;
}

/* === Responsive: Tablet (768px+) === */
@media (min-width: 768px) {
    .container {
        max-width: 680px;
    }

    .registration-card {
        padding: 32px 28px;
    }

    .registration-card h1 {
        font-size: 1.5rem;
    }

    .btn-app {
        padding: 10px 20px;
        min-height: 48px;
        max-width: 220px;
    }

    .btn-app .app-icon svg {
        width: 24px;
        height: 24px;
    }

    .btn-app .app-label-small {
        font-size: 0.6rem;
    }

    .btn-app .app-label-big {
        font-size: 1rem;
    }

    .success-card {
        padding: 48px 32px;
    }
}

/* === Responsive: Desktop (1024px+) === */
@media (min-width: 1024px) {
    .container {
        max-width: 720px;
    }

    .registration-card {
        padding: 36px 32px;
    }
}

/* === Print === */
@media print {
    body { background: #FFFFFF; }
    .btn, form { display: none; }
}
