/* Honeypot field - hidden from users, catches bots */
.salt-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Form container */
.salt-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    position: relative; /* Needed for honeypot positioning */
}

/* Input/textarea/select normal case */
.salt-form-container input,
.salt-form-container textarea,
.salt-form-container select {
    text-transform: none !important;
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    
    /* ADD THESE THREE LINES TO FIX THE CLIPPING */
    line-height: 1.5;
    height: auto;
    min-height: 48px; 
}

/* Specific fix for the dropdown arrow and padding */
.salt-form-container select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px !important;
}

/* Postcode uppercase only */
.salt-form-container input[name="postcode"] {
    text-transform: uppercase !important;
}

/* Buttons */
#salt-submit-btn {
    display: block;         /* Forces the button to be on its own line */
    width: 100%;           /* Makes it span the full width of the container */
    position: relative;
    padding: 15px 20px;    /* Slightly more padding for a bigger mobile target */
    font-size: 18px;       /* Makes the text more readable */
    font-weight: bold;
    cursor: pointer;
    background-color: #3498db; /* Your primary brand color */
    color: white;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

#salt-submit-btn:hover {
    background-color: #2980b9; /* Slightly darker on hover */
}

#salt-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

#salt-submit-btn.is-loading .btn-text {
    opacity: 0.8;
}

#salt-submit-btn.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.success-message,
.error-message {
    display: none;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.error-message {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}
/* All other input text remains normal */
.salt-form-container input,
.salt-form-container textarea,
.salt-form-container select {
    text-transform: none !important;
}

/* Postcode is always uppercase */
.salt-form-container input[name="postcode"] {
    text-transform: uppercase !important;
}
/* Style the Google Autocomplete Dropdown */
.pac-container {
    background-color: #fff;
    position: absolute !important;
    z-index: 9999 !important;
    border-radius: 8px;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: inherit;
}

.pac-item {
    padding: 12px 15px; /* Larger tap target for mobile */
    cursor: pointer;
    border-top: 1px solid #eee;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-icon {
    margin-right: 10px;
}

/* Make it look great on Mobile */
@media (max-width: 600px) {
    .pac-container {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto;
        border-radius: 0; /* Full width looks better on mobile */
    }

    .pac-item {
        padding: 16px 20px; /* Even bigger for thumbs */
        font-size: 16px;
    }
}

/* Hide reCAPTCHA badge (required notice is shown in form instead) */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    right: -9999px !important;
    bottom: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
    transform: scale(0) !important;
    display: none !important;
}

/* Extra mobile/tablet protection for reCAPTCHA badge */
@media (max-width: 768px) {
    .grecaptcha-badge {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* reCAPTCHA notice text */
.salt-recaptcha-notice {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 16px;
    line-height: 1.4;
}

.salt-recaptcha-notice a {
    color: #999;
    text-decoration: underline;
}

.salt-recaptcha-notice a:hover {
    color: #666;
}