/**
 * Public styles for Solind Diplomas Plugin
 *
 * @package Solind_Diplomas
 */

/* Form Wrapper */
.solind-diplomas-form-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.solind-diplomas-form {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Title */
.solind-diplomas-title {
    font-size: 28px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin: 0 0 30px;
    line-height: 1.3;
}

/* Form Groups */
.solind-form-group {
    margin-bottom: 25px;
}

.solind-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444444;
    margin-bottom: 8px;
    line-height: 1.4;
}

.solind-required {
    color: #d63638;
    margin-left: 3px;
}

/* Input Fields */
.solind-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-sizing: border-box;
}

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

.solind-input::placeholder {
    color: #999999;
}

/* Help Text */
.solind-help-text {
    font-size: 13px;
    color: #666666;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

/* Captcha Container */
.solind-captcha-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.solind-captcha-question {
    font-size: 16px;
    font-weight: 600;
    color: #444444;
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

.solind-captcha-input {
    max-width: 150px;
}

/* Form Actions */
.solind-form-actions {
    margin-top: 35px;
    text-align: center;
}

/* Button */
.solind-button {
    display: inline-block;
    background: #0073aa;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.1s ease;
    text-decoration: none;
    line-height: 1.4;
}

.solind-button:hover {
    background: #005a87;
}

.solind-button:active {
    transform: translateY(1px);
}

.solind-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.solind-button-loading {
    display: none;
}

.solind-button.loading .solind-button-text {
    display: none;
}

.solind-button.loading .solind-button-loading {
    display: inline;
}

/* Message */
.solind-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

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

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

.solind-message.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Honeypot field - must remain hidden but accessible for bots */
.solind-permanencia-wrap {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.solind-permanencia {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

/* Results Section */
.solind-diplomas-results {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.solind-results-title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

.solind-diplomas-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.solind-diploma-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.solind-diploma-item:hover {
    background: #f0f0f0;
}

.solind-diploma-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.solind-diploma-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.solind-diploma-date {
    font-size: 13px;
    color: #666666;
}

.solind-button-download {
    display: inline-block;
    background: #28a745;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 15px;
    transition: background 0.2s ease;
}

.solind-button-download:hover {
    background: #218838;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .solind-diplomas-form-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }

    .solind-diplomas-form {
        padding: 25px 20px;
    }

    .solind-diplomas-title {
        font-size: 24px;
    }

    .solind-button {
        width: 100%;
        padding: 14px 20px;
    }

    .solind-captcha-input {
        max-width: 100%;
    }

    .solind-diploma-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .solind-diploma-info {
        align-items: center;
    }

    .solind-button-download {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Page Builder Compatibility */
/* Elementor */
.elementor-widget-shortcode .solind-diplomas-form-wrapper {
    margin: 0;
    max-width: 100%;
}

/* Divi */
.et_pb_module .solind-diplomas-form-wrapper {
    margin: 0;
    max-width: 100%;
}

/* Bricks */
.brxe-shortcode .solind-diplomas-form-wrapper {
    margin: 0;
    max-width: 100%;
}
