/* Fő konténer */
#aia-wrapper {
    max-width: 600px;
    margin: 40px auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

/* Űrlap elemek */
#aia-form label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

#aia-form input[type="text"],
#aia-form input[type="date"],
#aia-form input[type="time"],
#aia-form textarea,
#aia-form select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; /* Fontos a padding miatt */
    font-size: 16px;
    transition: border-color 0.3s;
}

#aia-form input:focus,
#aia-form textarea:focus {
    border-color: #6a1b9a; /* Misztikus lila fókusz */
    outline: none;
}

#aia-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Gomb stílus */
#aia-form button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6a1b9a, #8e24aa);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
}

#aia-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.4);
}

#aia-form button.aia-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner Animáció */
#aia-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.aia-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6a1b9a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Eredmény doboz */
#aia-result {
    margin-top: 30px;
    padding: 20px;
    background: #f4f0f9; /* Halvány lila háttér */
    border-left: 5px solid #6a1b9a;
    border-radius: 4px;
    line-height: 1.6;
    color: #2c3e50;
    display: none; /* Alapból rejtve */
}

#aia-result h3 {
    margin-top: 0;
    color: #4a148c;
}

.aia-error {
    color: #d32f2f;
    background: #ffebee;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.aia-card {
    background: #4a148c;
    border-radius: 8px;
    padding: 20px;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 5px solid #6a1b9a; /* Lila csík */
}

.aia-card h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #4a148c;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: left;
}
.aia-card p, 
.aia-card li {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    line-height: 1.6;
    margin-bottom: 15px;
}

#aia-status-text {
    min-height: 24px; /* Hogy ne ugráljon a tartalom, amikor vált a szöveg */
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Az új Google városkereső formázása */
gmp-place-autocomplete {
    width: 100%;
    margin-bottom: 15px;
}

/* Belül lévő input stílusának igazítása (ha szükséges) */
gmp-place-autocomplete input {
    padding: 12px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    width: 100%;
}