/**
 * IDRG Newsletter Form Styles
 */


.idrg-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.idrg-form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.idrg-form-row label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.idrg-form-row .required {
    color: #c00;
}

.idrg-form-row input[type="text"],
.idrg-form-row input[type="email"],
.idrg-form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.idrg-form-row input[type="text"]:focus,
.idrg-form-row input[type="email"]:focus,
.idrg-form-row select:focus {
    outline: none;
    border-color: #429daf;
    box-shadow: 0 0 0 3px rgba(66, 157, 175, 0.15);
}

.idrg-form-row select {
    cursor: pointer;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

.idrg-form-checkbox {
    flex-direction: row;
    align-items: flex-start;
}

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

.idrg-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #429daf;
    flex-shrink: 0;
}

.idrg-submit-button {
    background-color: #429daf;
    color: #fff;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
}

.idrg-submit-button:hover {
    background-color: #367d8c;
}

.idrg-submit-button:active {
    transform: scale(0.98);
}

.idrg-submit-button:disabled {
    background-color: #a0c4cc;
    cursor: not-allowed;
    transform: none;
}

.idrg-submit-button.loading {
    position: relative;
    color: transparent;
}

.idrg-submit-button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: idrg-spin 0.8s linear infinite;
}

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

.idrg-form-message {
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.idrg-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.idrg-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 480px) {
    .idrg-newsletter-form-wrapper {
        padding: 15px;
    }

    .idrg-form-row input[type="text"],
    .idrg-form-row input[type="email"],
    .idrg-form-row select,
    .idrg-submit-button {
        padding: 14px 12px;
    }
}
