* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #00263A;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.container {
    background: #284C60;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.header {
    background: url('header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 30px;
    text-align: center;
    flex-shrink: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 38, 58, 0.8);
    z-index: 0;
}

.header h1 {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
}

.ticket-form {
    padding: 40px 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #284C60;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    flex-shrink: 0;
}

label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #A5BAC9;
    margin-bottom: 12px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    border: 2px solid #4F758B;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #00263A;
    color: #A5BAC9;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #E35205;
    box-shadow: 0 0 0 4px rgba(227, 82, 5, 0.2);
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: #7A97AB;
}

textarea {
    resize: vertical;
    min-height: 200px;
    flex: 1;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #00263A;
    border: 2px solid #E35205;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 20px;
    border-bottom: 1px solid #284C60;
    color: #A5BAC9;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #284C60;
    color: white;
}

.submit-btn {
    width: 100%;
    padding: 22px;
    font-size: 24px;
    font-weight: 600;
    color: white;
    background: #E35205;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
    margin-top: 10px;
    flex-shrink: 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(227, 82, 5, 0.4);
    background: #c74504;
}

.submit-btn:active {
    transform: translateY(0);
}

.success-message {
    padding: 60px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #284C60;
}

.success-message.hidden {
    display: none;
}

.checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.checkmark-circle {
    stroke: #4caf50;
    stroke-width: 2;
    stroke-miterlimit: 10;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-check {
    stroke: #4caf50;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 30px #4caf50;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

.success-message h2 {
    font-size: 36px;
    color: #A5BAC9;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 22px;
    color: #7A97AB;
    margin-bottom: 15px;
}

.countdown-text {
    font-size: 20px;
    color: #A5BAC9;
    font-weight: 600;
    margin-bottom: 40px;
}

.countdown-text span {
    color: #E35205;
    font-size: 28px;
}

.new-ticket-btn {
    padding: 20px 50px;
    font-size: 22px;
    font-weight: 600;
    color: white;
    background: #E35205;
    border: 2px solid #E35205;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-ticket-btn:hover {
    background: #c74504;
    border-color: #c74504;
}

/* iPad Landscape Optimization */
@media (orientation: landscape) {
    .container {
        border-radius: 0;
    }
    
    .ticket-form {
        padding: 30px 80px;
    }
    
    .form-group:last-of-type {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .form-group:last-of-type textarea {
        flex: 1;
    }
}

/* Prevent zoom on input focus for iOS */
@supports (-webkit-touch-callout: none) {
    input[type="text"],
    textarea {
        font-size: 20px;
    }
}

/* Scrollbar styling for dark mode */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #00263A;
}

::-webkit-scrollbar-thumb {
    background: #4F758B;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7A97AB;
}
