/* Modern Availability Checker Styles */
.etheric-availability-checker {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.checker-content {
    text-align: center;
}

.checker-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #202124;
    line-height: 1.2;
    font-family: 'Nunito Sans Variable', 'Nunito Sans', sans-serif;
}

.checker-description {
    font-size: 1.125rem;
    color: #5f6368;
    margin-top: 1.5rem;
    margin-bottom: 0;
    line-height: 1.5;
    order: 2;
}

.availability-form {
    margin-bottom: 1.5rem;
    order: 1;
}

.form-row {
    display: flex;
    max-width: 700px; /* Made longer */
    margin: 0 auto;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    background: white;
}

.address-input-wrapper {
    flex: 1;
    position: relative;
}

.address-input {
    width: 100%;
    padding: 16px 24px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
    min-width: 400px; /* Made longer */
}

.address-input::placeholder {
    color: #9aa0a6;
}

/* Option 1: Green button */
.check-button {
    padding: 16px 32px;
    background: #5CB081;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.check-button:hover:not(:disabled) {
    background: #4a9a6e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Option 2: Dark green button - uncomment to use this instead */
/*
.check-button {
    padding: 16px 32px;
    background: #203727;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.check-button:hover:not(:disabled) {
    background: #162a1c;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
*/

.check-button:disabled {
    background: #dadce0;
    cursor: not-allowed;
}

.loading-spinner svg {
    animation: spin 1s linear infinite;
}

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

/* Results */
.availability-results {
    margin-top: 2rem;
}

.availability-result {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    text-align: left;
    max-width: 700px; /* Made longer to match form */
    margin-left: auto;
    margin-right: auto;
}

.availability-result.available {
    background: #e8f5e8;
    border: 1px solid #34a853;
    color: #137333;
}

.availability-result.unavailable {
    background: #fce8e6;
    border: 1px solid #ea4335;
    color: #d93025;
}

.availability-result.error {
    background: #fef7e0;
    border: 1px solid #fbbc04;
    color: #b06000;
}

.result-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    font-weight: bold;
    width: 2rem;
    text-align: center;
}

.result-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.result-address {
    font-weight: 500;
    margin: 0.5rem 0;
}

.result-message {
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
}

/* Google Style Variant */
.etheric-availability-checker.google {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.etheric-availability-checker.google .checker-title {
    color: white;
    font-size: 36px;
}

.etheric-availability-checker.google .checker-description {
    color: rgba(255,255,255,0.9);
}

.etheric-availability-checker.google .form-row {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Compact Style Variant */
.etheric-availability-checker.compact .form-row {
    border-radius: 8px;
    max-width: 500px;
}

.etheric-availability-checker.compact .checker-title {
    font-size: 27px;
    margin-bottom: 1rem;
}

.etheric-availability-checker.compact .checker-description {
    font-size: 1rem;
    margin-top: 1rem;
}

.etheric-availability-checker.compact .address-input {
    min-width: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checker-title {
        font-size: 27px !important;
    }
    
    .form-row {
        flex-direction: column;
        border-radius: 12px;
        max-width: 90%;
    }
    
    .check-button {
        border-radius: 0 0 12px 12px;
        padding: 16px;
    }
    
    .address-input {
        border-radius: 12px 12px 0 0;
        min-width: auto;
    }
    
    .availability-result {
        flex-direction: column;
        text-align: center;
        max-width: 90%;
    }
    
    .result-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .etheric-availability-checker {
        padding: 0 1rem;
    }
    
    .checker-title {
        font-size: 27px !important;
    }
    
    .form-row {
        max-width: 100%;
    }
}

/* Make sure content order is correct */
.checker-content {
    display: flex;
    flex-direction: column;
}

.checker-content .checker-title {
    order: 0;
}

.checker-content .availability-form {
    order: 1;
}

.checker-content .checker-description {
    order: 2;
}

.checker-content .availability-results {
    order: 3;
}