body {
    background-color: #D0CCD0;
    color: #274156;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    letter-spacing: 2vw;
    font-size: 6em;
    margin: 2vh 0;
    margin-top: 5vh;
}

h2 {
    text-align: center;
    color: #1C6E8C;
    font-size: 2em;
    margin: 1.5vh 0;
}

h3 {
    text-align: center;
    font-size: 4em;
    margin: 2vh 0;
    margin-top: 10vh;
}

.card {
    display: none;
    background-color: #274156;
    color: #FFFFFF;
    border-radius: 2vw;
    padding: 3vh 3vw;
    margin: 3vh auto;
    margin-top: 10vh;
    margin-bottom: 8vh;
    width: 50vw;
    min-width: 300px;
    box-shadow: 0px 1vh 2vh rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.active {
    display: block;
    transform: translateY(0);
}

.card input[type=text] {
    width: 80%;
    max-width: 40vw;
    padding: 1vh 1vw;
    font-size: 1.2vw;
    margin: 1vh 0;
    border: 0.2vw solid #ccc;
    border-radius: 1vw;
    box-sizing: border-box;
    text-align: center;
}

#subtitle, #form_div {
    opacity: 0;
    transition: opacity 1s ease-in;
}

#title span {
    opacity: 0;
    display: inline-block;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
}

#title span:nth-child(1) { animation-delay: 0s; }
#title span:nth-child(2) { animation-delay: 0.1s; }
#title span:nth-child(3) { animation-delay: 0.2s; }
#title span:nth-child(4) { animation-delay: 0.3s; }
#title span:nth-child(5) { animation-delay: 0.4s; }
#title span:nth-child(6) { animation-delay: 0.5s; }
#title span:nth-child(7) { animation-delay: 0.6s; }
#title span:nth-child(8) { animation-delay: 0.7s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form_div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#form_div p {
    margin-top: 34vh;
    font-size: 1vw;
    color: #274156;
}

#form_div2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#form_div2 p {
    margin-top: 34vh;
    font-size: 1vw;
    color: #274156;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#containerp {
    text-align: center;
    color: white;
    margin-top: 3.5vh;
    font-size: 1.2em;
}

.event-card {
    background: linear-gradient(135deg, #274156 0%, #1e3540 100%);
    color: white;
    border-radius: 20px;
    margin: auto;
    margin-top: 5vh;
    padding: 24px;
    width: min(400px, 90vw);
    min-height: auto;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.15);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1C6E8C, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 20px 20px 0 0;
}

.event-type {
    font-size: 1.1em;
    font-weight: 600;
    color: #1C6E8C;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff, #D0CCD0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.event-detail {
    display: flex;
    align-items: center;
    margin: 12px 0;
    font-size: 1.1em;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.event-detail:hover {
    color: #1C6E8C;
}

.detail-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.8;
    flex-shrink: 0;
    fill: currentColor;
}

.detail-label {
    font-weight: 600;
    color: #a8b8c8;
    min-width: 80px;
}

.detail-content {
    color: white;
    font-weight: 500;
}

.event-details {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
    backdrop-filter: blur(10px);
}

.details-title {
    font-weight: 600;
    color: #1C6E8C;
    margin-bottom: 8px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-content {
    color: #D0CCD0;
    line-height: 1.4;
}

label {
    display: block;
    font-size: 1.5vw;
    margin-bottom: 1vh;
    color: #FFFFFF;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2vh;
    width: 50vw;
    margin-left: auto;
    margin-right: auto;
}

.buttons button {
    width: 18vw;
    padding: 1.2vh 1vw;
    font-size: 1.2vw;
    font-family: 'Montserrat', sans-serif;
    background-color: #1C6E8C;
    color: #FFFFFF;
    border: none;
    border-radius: 1.5vw;
    box-shadow: 0px 0.5vh 1vh rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.buttons button:hover:not(:disabled) {
    background-color: #274156;
    transform: scale(1.05);
}

.buttons button:disabled {
    background-color: #ccc;
    cursor: default;
    color: #666;
}

.buttons2 {
    display: flex;
    width: 50vw;
    display: block;
}

.buttons2 button {
    width: 40vw;
    padding: 2vh 1.3vw;
    font-size: 2vw;
    font-family: 'Montserrat', sans-serif;
    background-color: #1C6E8C;
    color: #FFFFFF;
    border: none;
    border-radius: 1.5vw;
    box-shadow: 0px 0.5vh 1vh rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
    margin-top: 4vh;
}

.buttons2 button:hover:not(:disabled) {
    background-color: #274156;
    transform: scale(1.05);
}

.buttons2 button:disabled {
    background-color: #ccc;
    cursor: default;
    color: #666;
}

#formSubmitBtn {
    width: 18vw;
    padding: 1.2vh 1vw;
    font-size: 1.2vw;
    font-family: 'Montserrat', sans-serif;
    background-color: #1C6E8C;
    color: #FFFFFF;
    border: none;
    border-radius: 1.5vw;
    box-shadow: 0px 0.5vh 1vh rgba(0,0,0,0.2);
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

#formSubmitBtn.hidden {
    display: none;
}

#formSubmitBtn:hover {
    background-color: #274156;
    transform: scale(1.05);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8vw;
    margin-top: 5vh;
    width: 25vw;
    padding: 0.8vw 1.4vw;
    font-size: 1.5vw;
    font-family: 'Montserrat', sans-serif;
    background-color: #1C6E8C;
    color: #FFFFFF;
    border: none;
    border-radius: 2vw;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.google-btn img {
    height: 1.5em;
    background: white;
    border-radius: 50%;
    padding: 0.2em;
}

.google-btn:hover {
    background-color: #274156;
    transform: scale(1.05);
}

#form_div {
    text-align: center;
    margin-top: 5vh;
}

@media (max-width: 768px) {
    .event-card {
        padding: 24px;
        min-height: auto;
        width: min(350px, 95vw);
    }
    
    .event-title {
        font-size: 1.8em;
    }
    
    .event-detail {
        font-size: 1em;
    }
    
    .detail-label {
        min-width: 70px;
    }
    
    .event-type {
        font-size: 1em;
    }
}
