/**
 * DCS Member Status Check - Styles
 */

.dcs-member-status-check-wrapper {
    position: relative;
    z-index: inherit;
}

/* Ensure compatibility with Elementor popups */
.elementor-popup-modal .dcs-member-status-check-wrapper {
    position: static;
    z-index: auto;
}

.dcs-form-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.dcs-form-group {
    margin-bottom: 20px;
}

.dcs-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.dcs-form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.dcs-form-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dcs-form-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.dcs-form-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.dcs-form-button:hover:not(:disabled) {
    background-color: #005a87;
}

.dcs-form-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.dcs-form-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

/* Loading spinner */
.dcs-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dcs-spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Messages */
.dcs-form-message {
    margin-top: 15px;
    padding: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.dcs-form-message p {
    margin: 0;
}

.dcs-message-content {
    text-align: center;
}

.dcs-message-heading {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.dcs-message-text {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
}

.dcs-message-text:last-child {
    margin-bottom: 0;
}

.dcs-message-text a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.dcs-message-text a:hover {
    text-decoration: none;
}

.dcs-message-button, .dcs-message-button:hover {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #000 !important;
    background-color: var( --e-global-color-c1a0a20 );
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 25px;
}

.dcs-message-error {
    background-color: #fef3f3;
    border: 1px solid #f8d7da;
    color: #721c24;
}

.dcs-message-success {
    background-color: #f0f9f3;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.dcs-message-success .dcs-message-heading {
    color: #0d4b1e;
}

.dcs-message-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #383d41;
}

.dcs-message-info .dcs-message-heading {
    color: #1a1d20;
}

/* Contact Columns */
.dcs-message-text + p {
    margin-top: 5px;
    margin-bottom: 15px;
}

.dcs-contact-columns {
    display: flex;
    gap: 20px;
    margin: 15px 0 20px 0;
    flex-wrap: wrap;
}

.dcs-contact-column {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.dcs-contact-column strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1a1d20;
}

.dcs-contact-column a {
    color: #0073aa;
    text-decoration: none;
    word-break: break-word;
    font-size: 14px;
}

.dcs-contact-column a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .dcs-member-status-check-wrapper {
        padding: 15px;
    }

    .dcs-member-status-check-form {
        padding: 20px;
    }

    .dcs-form-title {
        font-size: 20px;
    }

    .dcs-form-input,
    .dcs-form-button {
        font-size: 14px;
    }

    .dcs-contact-columns {
        flex-direction: column;
        gap: 15px;
    }

    .dcs-contact-column {
        min-width: 100%;
    }
}
