/* Widget-specific styles for iframe embedding */
/* CSS Custom Properties - Hive styling */
:root {
    --widget-primary-color: #00394E;
    --widget-primary-hover-color: #B99A3E;
    --widget-primary-rgb: 0, 57, 78;
    --widget-background-color: #ffffff;
    --widget-surface-color: #FAFAFA;
    --widget-text-color: #2D2D2D;
    --widget-text-muted: #6B6B6B;
    --widget-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --widget-border-radius: 6px;
    --widget-border-radius-lg: 10px;
    --widget-border-color: #E0E0E0;
    --widget-error-color: #D32F2F;
    --widget-success-color: #388E3C;
    --widget-warning-color: #F57C00;
    --widget-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --widget-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--widget-font-family);
    font-size: 14px;
    line-height: 1.5;
    background-color: var(--widget-background-color);
    color: var(--widget-text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.widget-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--widget-background-color);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .widget-container {
        max-width: 100%;
        padding: 16px;
    }
    
    .signup-header h4 {
        font-size: 18px;
    }
    
    .signup-header h4::before,
    .signup-header h4::after {
        max-width: 40px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .form-control {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Form Labels */
.form-label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--widget-text-color);
}

.form-label .text-danger {
    display: inline;
    font-size: inherit;
    color: var(--widget-error-color);
}

/* Form Controls */
.form-control {
    width: 100%;
    border: 1px solid var(--widget-border-color);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: var(--widget-font-family);
    background-color: var(--widget-background-color);
    color: var(--widget-text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: var(--widget-text-muted);
}

.form-control:focus {
    border-color: var(--widget-primary-color);
    box-shadow: 0 0 0 4px rgba(var(--widget-primary-rgb), 0.15);
    outline: none;
}

.form-control.is-invalid,
.form-control.invalid {
    border-color: var(--widget-error-color);
}

.form-control.is-invalid:focus,
.form-control.invalid:focus {
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15);
}

.form-control[readonly] {
    background-color: var(--widget-surface-color);
    color: var(--widget-text-muted);
    cursor: not-allowed;
}

/* Validation Messages */
.text-danger {
    display: block;
    color: var(--widget-error-color);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.text-muted {
    color: var(--widget-text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--widget-font-family);
    transition: all 0.2s ease;
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: #00394E;
    border: 1px solid #00394E;
    border-radius: 3px;
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background-color: #B99A3E;
    border-color: #B99A3E;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--widget-shadow);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-secondary {
    background-color: transparent;
    border: 2px solid var(--widget-border-color);
    color: var(--widget-text-color);
}

.btn-outline-secondary:hover:not(:disabled) {
    background-color: var(--widget-surface-color);
    border-color: var(--widget-text-muted);
}

.w-100 {
    width: 100%;
}

/* Spacing */
.mb-3 {
    margin-bottom: 16px;
}

.me-2 {
    margin-right: 8px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.alert-success {
    background-color: #E8F5E9;
    border: 1px solid #C8E6C9;
    color: #2E7D32;
}

.alert-danger {
    background-color: #FFEBEE;
    border: 1px solid #FFCDD2;
    color: #C62828;
}

.alert-warning {
    background-color: #FFF3E0;
    border: 1px solid #FFE0B2;
    color: #E65100;
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 16px;
    height: 16px;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Layout Utilities */
.d-flex {
    display: flex;
}

.gap-2 {
    gap: 12px;
}

.flex-grow-1 {
    flex-grow: 1;
}

/* Header Styles */
.signup-header {
    text-align: center;
    margin-bottom: 28px;
}

.signup-header h4 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--widget-text-color);
    letter-spacing: -0.01em;
}

.signup-header p {
    margin: 0;
    font-size: 15px;
    color: var(--widget-text-muted);
}

/* reCAPTCHA Notice */
.recaptcha-notice {
    font-size: 11px;
    color: var(--widget-text-muted);
    margin-top: 20px;
    text-align: center;
    line-height: 1.6;
}

.recaptcha-notice a {
    color: var(--widget-primary-color);
    text-decoration: none;
    font-weight: 500;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Honeypot (Keep Hidden) */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Hide reCAPTCHA badge - only do this if you have the required attribution text */
.grecaptcha-badge {
    visibility: hidden !important;
}
