/* Base Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px;
    padding: 0;
    background: linear-gradient(140deg, #6a0dad, #ff4081);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Header Section */
.header {
    color: white;
    padding: 20px 0;
    margin-bottom: 25px;
}

.logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.header h1 {
    font-size: 36px;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form Container */
.result-form {
    margin: 0 auto;
    max-width: 700px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.result-form p {
    font-size: 15px;
    margin-bottom: 25px;
    color: #444;
    line-height: 1.5;
    padding: 0 15px;
}

/* Form Elements */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    padding: 0 15px;
}

.form-row label {
    flex: 0 0 160px;
    text-align: right;
    font-weight: bold;
    color: #333;
}

.form-row input[type="text"] {
    flex: 1;
    max-width: 250px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    height: 25px;
}

.input-note {
    flex: 0 0 160px;
    font-size: 12px;
    color: #666;
    text-align: left;
    line-height: 1.3;
    margin-left: 8px;
}

/* Submit Button */
.result-form button {
    width: 200px;
    padding: 14px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.result-form button:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Messages */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.waiting-message {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 25px;
    border-radius: 5px;
    width: 85%;
    max-width: 400px;
    position: relative;
}

.modal-content button {
    padding: 10px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        margin: 15px;
    }

    .header h1 {
        font-size: 28px;
    }

    .result-form {
        max-width: 90%;
        padding: 20px;
    }

    .form-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
    }

    .form-row label {
        flex: 0 0 100%;
        text-align: left;
        margin-bottom: 5px;
    }

    .form-row input[type="text"] {
        flex: 1;
        max-width: 100%;
        min-width: 10%;
    }

    .input-note {
        flex: 0 0 100%;
        margin-left: 0;
        margin-top: 5px;
    }

    .result-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }

    .result-form {
        padding: 15px;
    }

    .form-row input[type="text"] {
        height: 25px;
    }

    .modal-content {
        width: 90%;
        margin: 30% auto;
    }
}
