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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 0;
    line-height: 1.6;
}

.widget-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.widget-header {
    background: #eb6d37;
    color: white;
    padding: 30px 30px 25px;
    text-align: center;
}

.widget-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.widget-header p {
    font-size: 14px;
    opacity: 0.9;
}

.widget-form {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Checkbox Styling */
.form-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: #eb6d37;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #d45e2f;
}

/* Location Check Wrapper */
.location-check-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.location-check-wrapper input {
    flex: 1;
}

.btn-check {
    padding: 12px 20px;
    background: #eb6d37;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-check:hover {
    background: #d45e2f;
}

.btn-check:active {
    transform: translateY(1px);
}

.city-status-message {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    font-weight: 500;
}

/* Google Places Autocomplete Element Styling */
.form-group gmp-place-autocomplete {
    width: 100%;
    display: block;
}

.form-group gmp-place-autocomplete input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(25, 118, 210, 0.3);
    border-radius: 50%;
    border-top-color: #1976d2;
    animation: spin 0.8s linear infinite;
}

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

.btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: #eb6d37;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.widget-footer {
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: center;
}

.widget-footer small {
    color: #666;
    font-size: 12px;
}

/* Google Places Autocomplete Styles */
.pac-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
}

.pac-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}

.pac-item:hover {
    background-color: #f5f5f5;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        /*padding: 10px;*/
    }

    .widget-header {
        padding: 20px 20px 15px;
    }

    .widget-header h2 {
        font-size: 20px;
    }

    .widget-form {
        padding: 20px;
    }

    .widget-footer {
        padding: 15px 20px;
    }
}

/* Iframe Compatibility */
html, body {
    height: 100%;
}

body {
    min-height: 100%;
}
