/* SmartContact Frontend Styles - Clean Version */

/* SUPER AGGRESSIVE - Remove ALL weird symbols completely */
.smartcontact-form-container *::before,
.smartcontact-form-container *::after,
.smartcontact-form *::before,
.smartcontact-form *::after,
.smartcontact-label::before,
.smartcontact-label::after,
.smartcontact-form-group::before,
.smartcontact-form-group::after,
.smartcontact-input::before,
.smartcontact-input::after,
.smartcontact-textarea::before,
.smartcontact-textarea::after,
.smartcontact-select::before,
.smartcontact-select::after,
.smartcontact-submit-btn::before,
.smartcontact-submit-btn::after {
    content: "" !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* CSS Reset to remove any weird symbols and ensure proper mobile fit */
* {
    box-sizing: border-box;
}

.smartcontact-form-container *,
.smartcontact-form-container *::before,
.smartcontact-form-container *::after {
    box-sizing: border-box;
}

/* Completely remove any weird symbols from all elements */
.smartcontact-label::before,
.smartcontact-label::after,
.smartcontact-form *::before,
.smartcontact-form *::after {
    content: none !important;
    display: none !important;
}

/* Aggressive background removal for ALL elements */
.smartcontact-form-container,
.smartcontact-form-container *,
.smartcontact-form,
.smartcontact-form *,
.smartcontact-header,
.smartcontact-title,
.smartcontact-description,
.smartcontact-form-group,
.smartcontact-label,
.smartcontact-required,
.smartcontact-input,
.smartcontact-textarea,
.smartcontact-select,
.smartcontact-select-wrapper,
.smartcontact-captcha-group,
.smartcontact-captcha-container,
.smartcontact-captcha-question,
.smartcontact-captcha-input,
.smartcontact-submit-btn,
.smartcontact-message-container,
.smartcontact-message,
.smartcontact-progress-indicator,
.smartcontact-progress-bar,
.smartcontact-progress-text {
    background: none !important;
    background-color: none !important;
    background-image: none !important;
    background-gradient: none !important;
}

/* Desktop Styles */
.smartcontact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    background: none !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.smartcontact-header {
    text-align: left;
    margin-bottom: 25px;
    padding: 0;
    background: none !important;
}

.smartcontact-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #333333;
    background: none !important;
}

.smartcontact-description {
    font-size: 16px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
    background: none !important;
}

.smartcontact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    background: none !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.smartcontact-form-group {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: none !important;
    margin: 0;
}

.smartcontact-label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333333;
    font-size: 16px;
    background: none !important;
    padding: 0;
}

.smartcontact-required {
    color: #ff0000;
    background: none !important;
}

.smartcontact-input,
.smartcontact-textarea,
.smartcontact-select {
    padding: 12px 15px;
    border: 2px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    background: none !important;
    color: #333333;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.smartcontact-input:focus,
.smartcontact-textarea:focus,
.smartcontact-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background: none !important;
}

.smartcontact-textarea {
    min-height: 120px;
    resize: vertical;
    background: none !important;
}

.smartcontact-select-wrapper {
    position: relative;
    width: 100%;
    background: none !important;
    padding: 0;
}

.smartcontact-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
    background-color: none !important;
}

.smartcontact-captcha-group {
    margin: 20px 0;
    padding: 0;
    background: none !important;
}

.smartcontact-captcha-container {
    display: flex;
    gap: 15px;
    align-items: center;
    background: none !important;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

.smartcontact-captcha-question {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    background: none !important;
    color: #0073aa;
    padding: 10px 15px;
    border-radius: 6px;
    border: 2px solid #0073aa;
}

.smartcontact-captcha-input {
    width: 100px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background: none !important;
    border: 2px solid #cccccc;
}

.smartcontact-submit-btn {
    background: none !important;
    color: #0073aa;
    border: 2px solid #0073aa;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.smartcontact-submit-btn:hover {
    background: #0073aa !important;
    color: white;
}

.smartcontact-submit-btn:disabled {
    background: none !important;
    color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}

.smartcontact-message-container {
    margin-top: 20px;
    padding: 0;
    background: none !important;
}

.smartcontact-message {
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    border: 2px solid;
    background: none !important;
}

.smartcontact-message.success {
    background: none !important;
    color: #155724;
    border-color: #155724;
}

.smartcontact-message.error {
    background: none !important;
    color: #721c24;
    border-color: #721c24;
}

/* Theme Variations - Simple */
.smartcontact-theme-skyblue .smartcontact-title,
.smartcontact-theme-skyblue .smartcontact-label {
    color: #0073aa;
    background: none !important;
}

.smartcontact-theme-skyblue .smartcontact-submit-btn {
    color: #0073aa;
    border-color: #0073aa;
    background: none !important;
}

.smartcontact-theme-skyblue .smartcontact-submit-btn:hover {
    background: #0073aa !important;
    color: white;
}

.smartcontact-theme-pink .smartcontact-title,
.smartcontact-theme-pink .smartcontact-label {
    color: #e91e63;
    background: none !important;
}

.smartcontact-theme-pink .smartcontact-submit-btn {
    color: #e91e63;
    border-color: #e91e63;
    background: none !important;
}

.smartcontact-theme-pink .smartcontact-submit-btn:hover {
    background: #e91e63 !important;
    color: white;
}

.smartcontact-theme-orange .smartcontact-title,
.smartcontact-theme-orange .smartcontact-label {
    color: #ff9800;
    background: none !important;
}

.smartcontact-theme-orange .smartcontact-submit-btn {
    color: #ff9800;
    border-color: #ff9800;
    background: none !important;
}

.smartcontact-theme-orange .smartcontact-submit-btn:hover {
    background: #ff9800 !important;
    color: white;
}

.smartcontact-theme-grey .smartcontact-title,
.smartcontact-theme-grey .smartcontact-label {
    color: #666666;
    background: none !important;
}

.smartcontact-theme-grey .smartcontact-submit-btn {
    color: #666666;
    border-color: #666666;
    background: none !important;
}

.smartcontact-theme-grey .smartcontact-submit-btn:hover {
    background: #666666 !important;
    color: white;
}

/* Progress indicator */
.smartcontact-progress-indicator {
    background: none !important;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.smartcontact-progress-bar {
    width: 100%;
    height: 6px;
    background: none !important;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.smartcontact-progress-fill {
    height: 100%;
    background: #0073aa;
    border-radius: 1px;
    animation: progressAnimation 2s ease-in-out infinite;
    width: 30%;
}

@keyframes progressAnimation {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
    100% { transform: translateX(-100%); }
}

.smartcontact-progress-text {
    margin: 0;
    color: #666666;
    font-weight: bold;
    font-size: 16px;
    background: none !important;
}

/* Mobile Styles - Responsive Design */
@media (max-width: 768px) {
    .smartcontact-form-container {
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        background: none !important;
        transform: none !important;
        overflow: visible !important;
    }
    
    .smartcontact-header {
        margin-bottom: 20px;
        padding: 0 !important;
        background: none !important;
    }
    
    .smartcontact-title {
        font-size: 24px;
        margin-bottom: 10px;
        background: none !important;
    }
    
    .smartcontact-description {
        font-size: 14px;
        line-height: 1.4;
        background: none !important;
    }
    
    .smartcontact-form {
        gap: 15px;
        width: 100% !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    
    .smartcontact-form-group {
        width: 100% !important;
        padding: 0 !important;
        background: none !important;
        margin: 0 !important;
    }
    
    .smartcontact-label {
        font-size: 14px;
        margin-bottom: 6px;
        width: 100% !important;
        background: none !important;
        padding: 0 !important;
    }
    
    .smartcontact-input,
    .smartcontact-textarea,
    .smartcontact-select {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 4px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        background: none !important;
        border: 2px solid #cccccc !important;
        margin: 0 !important;
    }
    
    .smartcontact-textarea {
        min-height: 100px;
        background: none !important;
    }
    
    .smartcontact-captcha-container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        width: 100% !important;
        background: none !important;
        border: 2px solid #e0e0e0 !important;
        margin: 0 !important;
    }
    
    .smartcontact-captcha-question {
        font-size: 16px;
        padding: 8px 12px;
        background: none !important;
        border: 2px solid #0073aa !important;
        color: #0073aa !important;
    }
    
    .smartcontact-captcha-input {
        width: 80px;
        font-size: 16px;
        background: none !important;
        border: 2px solid #cccccc !important;
    }
    
    .smartcontact-submit-btn {
        padding: 14px 20px;
        font-size: 16px;
        width: 100% !important;
        background: none !important;
        border: 2px solid #0073aa !important;
        color: #0073aa !important;
        margin: 0 !important;
    }
    
    .smartcontact-message {
        padding: 12px;
        font-size: 14px;
        background: none !important;
    }
    
    .smartcontact-progress-indicator {
        padding: 15px;
        margin-bottom: 15px;
        width: 100% !important;
        background: none !important;
        border: 2px solid #e0e0e0 !important;
    }
    
    .smartcontact-progress-text {
        font-size: 14px;
        background: none !important;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .smartcontact-form-container {
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: none !important;
    }
    
    .smartcontact-title {
        font-size: 22px;
        background: none !important;
    }
    
    .smartcontact-description {
        font-size: 13px;
        background: none !important;
    }
    
    .smartcontact-input,
    .smartcontact-textarea,
    .smartcontact-select {
        padding: 10px;
        font-size: 16px;
        width: 100% !important;
        background: none !important;
    }
    
    .smartcontact-captcha-container {
        padding: 12px;
        background: none !important;
    }
    
    .smartcontact-captcha-question {
        font-size: 14px;
        padding: 6px 10px;
        background: none !important;
    }
    
    .smartcontact-captcha-input {
        width: 70px;
        font-size: 14px;
        background: none !important;
    }
    
    .smartcontact-submit-btn {
        padding: 12px 16px;
        font-size: 16px;
        background: none !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .smartcontact-form-container {
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: none !important;
    }
    
    .smartcontact-captcha-container {
        flex-direction: row;
        gap: 15px;
        background: none !important;
    }
    
    .smartcontact-captcha-input {
        width: 100px;
        background: none !important;
    }
}
