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

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    padding: 20px;
    line-height: 1.6;
}

h1 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
    font-size: 28px;
}

h2 {
    color: #34495e;
    margin: 30px 0 20px 0;
    font-size: 24px;
}

p {
    margin: 10px 0;
    color: #555;
    font-size: 16px;
}

/* Form Styling */
div {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

span {
    display: inline;
    margin-bottom: 0;
    font-weight: normal;
    color: #555;
    text-align: left;
    font-size: 14px;
    flex: 1;
    min-width: 150px;
}

label {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
}

select, input[type="text"] {
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    -webkit-appearance: none;
    appearance: none;
}

select {
    width: 150px;
    flex-shrink: 0;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 28px;
}

/* Input fields should be full width */
input[type="text"] {
    width: 100%;
    flex: 1 1 100%;
    margin-bottom: 15px;
}

select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Button Styling */
button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.3s;
}

button:hover:not(:disabled) {
    background-color: #229954;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Confirmation Message */
#confirmationMessage {
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

#confirmationMessage h2 {
    color: #155724;
}

#confirmationMessage p {
    color: #155724;
    text-align: left;
    margin: 10px 0;
}

/* Facebook Iframe */
iframe {
    max-width: 100%;
    height: auto;
}

/* Desktop View */
@media (min-width: 768px) {
    body {
        max-width: 600px;
        margin: 0 auto;
        padding: 40px 20px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
}