@font-face {
  font-family: "DIN LT Pro";
  src: url(../fonts/din-next-lt-pro-medium.ttf);
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 500px;
    width: 100%;
    background: url(../images/bg.png);
    background-position: center center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 1rem;
    position: relative;
    min-height: 100vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
    margin-top: 3rem;
    margin-bottom: 6rem;
}

/* Logo */
.logo-container {
    margin: 20px 0;
}

.logo {
    border-radius: 10px;
    text-align: center;
}

.logo-image {
    width: 146px;
    height: 88px;
}

/* Form Container */
.form-container {
    background: url(../images/form-bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    padding: 30px;
    border-radius: 15px;
    max-width: 450px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
select {
    font-family: "DIN LT Pro", sans-serif;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius:5px;
    font-size: 14px;
    font-weight: 600;
    color: #265499;
    background: white;
    outline: none;
    transition: all 0.3s;
}

input::placeholder {
    color: #265499;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('../images/Polygon\ 4.png') no-repeat right 1rem center;
    background-size: 14px;
    background-color: white;
    cursor: pointer;
}

input:focus,
select:focus {
    border-color: #2c5aa0;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0; /* Important to remove any default margin added by the spin buttons */
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: -10px;
}

.error-message.show {
    display: block;
}

.submit-btn {
    font-family: "DIN LT Pro", sans-serif;
    background: #265499;
    color: white;
    padding: 15px;
    max-width: 180px;
    width: 100%;
    align-self: center;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 0rem;
}

.submit-btn:hover {
    background: #1e3a6f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Success Container */
.success-container {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    max-width: 450px;
    width: 100%;
    margin: 20px auto;
    padding: 80px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-top: 8rem;
}

.success-message h2 {
    font-family: "DIN LT Pro", sans-serif;
    color: white;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .success-container {
        padding: 60px 30px;
    }

    .success-message h2 {
        font-size: 20px;
    }

    .logo-image {
        width: 120px;
        height: 72px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.5s ease-in-out;
}