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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card-container {
    width: 100%;
    max-width: 600px;
    height: 380px;
    perspective: 1000px;
    margin: 20px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.card-back {
    transform: rotateY(180deg);
}

.info {
    padding: 40px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #444;
    margin-bottom: 15px;
}

.location {
    font-size: 1.1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.location:before {
    content: "📍";
}

.contact-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #555;
}

.contact-form {
    padding: 20px 25px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: #222;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-group input {
    height: 36px;
}

.form-group textarea {
    resize: vertical;
    height: 60px;
    min-height: 60px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.submit-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #555;
}

.back-btn {
    background-color: transparent;
    color: #444;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #eee;
}

@media (max-width: 768px) {
    .card-container {
        width: 95%;
        height: 380px;
    }
    
    .info {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 15px 20px;
    }
    
    .contact-form h3 {
        margin-bottom: 10px;
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group label {
        margin-bottom: 3px;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px;
    }
    
    .form-group input {
        height: 34px;
    }
    
    .form-group textarea {
        height: 55px;
    }
}

@media (max-width: 480px) {
    .card-container {
        height: 420px;
        margin: 10px;
    }
    
    .form-buttons {
        flex-direction: column-reverse;
        gap: 8px;
        align-items: stretch;
        margin-top: 5px;
    }
    
    .submit-btn, .back-btn {
        width: 100%;
        padding: 10px;
    }
    
    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
}

@media (max-height: 750px) and (max-width: 480px) {
    .card-container {
        height: 400px;
    }
    
    .info {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }
    
    h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .form-group textarea {
        height: 50px;
    }
}

@media (max-height: 600px) {
    .card-container {
        height: 350px;
    }
    
    .form-group textarea {
        height: 40px;
    }
} 