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

body {
  	font-family: "Spectral", serif;
    overflow: hidden;
    position: relative;
    line-height: 1.6;
    min-height: 100vh;
    color:#fff;
	opacity:0;
	transition: opacity 10s ease;
}

body {
opacity: 1;
}

.shire-background
{
	position: relative;
	z-index:10;
	min-height: 100vh;
	/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image:
        linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="%23fff" opacity="0.05"/><circle cx="50" cy="50" r="40" fill="%23fff" opacity="0.03"/></svg>'); */
	background-image: url('hobbit-hole-4.jpg');
	background-size: cover;
	background-attachment: fixed;
	background-position: center center;
    display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.registration-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 10vw;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    padding: 4vw;
    max-width: 700px;
    width: 100%;
    animation: fadeIn 0.6s ease-in;
    border: 1px solid rgba(255,255,255,0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hobbit-header {
    text-align: center;
    margin-bottom: 30px;
}

.hobbit-header h1 {
    font-family: "Bilbo", cursive;
    color: #fff;
    font-size: 4rem;
    line-height: 3rem;
    margin: 30px 0 10px 0;
    font-weight: 700;
}

.subtitle {
    font-family: "Bilbo", cursive;
    color: #fff;
    font-size: 2rem;
}

.hobbit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #633;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.form-group input, 
.form-group select {
  	font-family: "Spectral", serif;
	padding: 12px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 1.2rem;
	transition: all 0.3s ease;
	background: rgba(255,255,255,0.4);
	box-shadow: -1px -1px 0 rgb(255, 255, 255);
	border-left: 0;
	border-top: 0;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input.validating {
    border-color: #fbbf24;
    background: rgba(255,255,255,0.7);
}

.form-group input.valid {
    border-color: #10b981;
    background: #f0fdf4;
}

.form-group input.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group input.bilbos {
	border-radius: 8px 8px 0 0;

}

.validation-message {
	/* margin-top: 8px; */
	font-size: 0.875rem;
	min-height: 20px;
	transition: all 0.3s ease;
	border-radius: 0 0 8px 8px;
	padding: 6px 12px;
	background: rgba(255,255,255,0.6);
	box-shadow: -1px -1px 0 rgba(255,255,255,1);
	font-weight: 600;
}

.validation-message.success {
    color: #10b981;
}

.validation-message.error {
    color: #ef4444;
}

.validation-message.warning {
    color: #f59e0b;
}

.validation-message.info {
    color: #2563eb;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group span {
    color: #fff;
    font-weight: normal;
}

.hobbit-button {
  	font-family: "Spectral", serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.hobbit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.hobbit-button:active:not(:disabled) {
    transform: translateY(0);
}

.hobbit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    color: #fff;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    animation: slideIn 0.5s ease;
}

.success-message h2 {
	margin: 0 0 12px 0;
	color: #fff;
	font-size: 24px;
}                                                                                                                                                                              

.success-message p {
	margin: 8px 0;
	font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-message {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-message p {
    font-family: "Bilbo", cursive;
    color: #fff;
    font-size: 2rem;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

/* Name Enrichment Slide-out Panel */
.enrichment-panel {
    position: fixed;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    padding: 25px;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.enrichment-panel.show {
    right: 20px;
}

.enrichment-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.enrichment-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.enrichment-content {
    color: #fff;
}

.enrichment-item {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.enrichment-item strong {
    display: block;
    color: #633;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enrichment-item .value {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.enrichment-confidence {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.6);
    border-radius: 5px;
    font-size: 0.85rem;
    margin-left: 6px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 600px) {
    .registration-container {
        padding: 30px 20px;
    }

    .hobbit-header h1 {
        font-size: 1.75rem;
    }

    .hobbit-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .enrichment-panel {
        width: 90%;
        right: -100%;
        top: auto;
        bottom: 0;
        transform: none;
        border-radius: 20px 20px 0 0;
    }

    .enrichment-panel.show {
        right: 5%;
    }
}
