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

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #111531;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
    min-width: 0;
}

.header {
    padding: 0;
}

.logo {
    width: 100%;
}

.content {
    padding: 30px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #2c3e50;
    font-size: 17px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #2c3e50;
    color: white;
    transition: border-color 0.3s ease;
    font-family: Georgia, 'Times New Roman', serif;
    box-sizing: border-box;
    min-width: 0;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: #bdc3c7;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: none;
    border-color: #3ebbed;
}

input[type="date"] {
    color: #bdc3c7;
    background: #2c3e50;
}

input[readonly] {
    background: #34495e;
    cursor: not-allowed;
}

textarea {
    min-height: 100px;
    resize: vertical;
    font-family: Georgia, 'Times New Roman', serif;
}

.error-message {
    background: transparent;
    color: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
    display: none;
    font-size: 21px;
    font-weight: bold;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.helper-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        max-width: 100%;
    }
    
    .content {
        padding: 30px 25px;
    }
    
    input[type="date"] {
        -webkit-appearance: none;
        -moz-appearance: textfield;
        padding: 15px 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    input[type="date"]::-webkit-outer-spin-button,
    input[type="date"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
}