.ans-subscription-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(20, 114, 186, 0.1);
    border-left: 4px solid #1472ba;
    position: relative;
    overflow: hidden;
}

.ans-subscription-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(20, 114, 186, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.ans-form-title {
    margin-bottom: 25px;
    color: #1a1a1a;
    font-size: 28px;
    text-align: left;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

.ans-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1472ba 0%, #0f5a8f 100%);
    border-radius: 2px;
}

.ans-subscription-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ans-form-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
}

/* Inline form styles */
.ans-inline-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ans-inline-group {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ans-field-label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
    display: block;
    letter-spacing: 0.2px;
}

.ans-required-asterisk {
    color: #e74c3c;
    font-weight: bold;
}

.ans-button-label {
    visibility: hidden;
    height: 24px;
}

.ans-button-group {
    flex: 0 0 auto;
    min-width: auto;
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    margin-top: 0;
}

.ans-form-group {
    display: flex;
    flex-direction: column;
}

.ans-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.ans-form-group .required {
    color: #999;
}

.ans-form-input {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    max-width: 100%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ans-form-input:hover {
    border-color: #b0b0b0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.ans-form-input:focus {
    outline: none;
    border-color: #1472ba;
    box-shadow: 0 0 0 3px rgba(20, 114, 186, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.ans-form-input:invalid:not(:focus) {
    border-color: #cccccc;
}

.ans-form-input.error {
    border-color: #cccccc;
}

.ans-error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;

}

.ans-inline-group {
    position: relative;
}

.ans-submit-btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, #1472ba 0%, #0f5a8f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 48px;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(20, 114, 186, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.ans-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ans-submit-btn:hover::before {
    left: 100%;
}

.ans-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0f5a8f 0%, #0a4a75 100%);
    box-shadow: 0 6px 16px rgba(20, 114, 186, 0.4);
    transform: translateY(-2px);
}

.ans-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.ans-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    display: none;
    width: 100%;
    clear: both;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ans-message.ans-success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ans-message.ans-error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Honeypot fields - ensure they stay hidden */
.ans-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    display: none !important;
}

.ans-honeypot input,
.ans-honeypot label {
    display: none !important;
}

.ans-submit-loading {
    display: inline-block;
}

.ans-submit-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .ans-form-row {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .ans-inline-group {
        width: 100%;
        min-width: 100%;
    }
    
    .ans-button-group {
        width: 100%;
    }
    
    .ans-submit-btn {
        width: 100%;
        align-self: stretch;
    }
    
    .ans-subscription-form-wrapper {
        padding: 25px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .ans-error-message {
        position: static;
        margin-top: 5px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
}

.form-table th{
	padding:25px;
}