/**
 * TWS Logo Customization Styles
 * 
 * Responsive styles for the "Add Your Logo" feature
 * Aligned with Flatsome theme color scheme
 */

/* Add Your Logo Button Section */
.tws-logo-customization-section {
    margin: 20px 0;
    text-align: center;
}

.tws-logo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #446084 0%, #5a7ba1 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(68, 96, 132, 0.2);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.tws-logo-button:hover {
    background: linear-gradient(135deg, #5a7ba1 0%, #446084 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 96, 132, 0.3);
    color: #ffffff;
}

.tws-logo-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(68, 96, 132, 0.3);
}

.tws-logo-button:focus {
    outline: 3px solid rgba(68, 96, 132, 0.3);
    outline-offset: 2px;
}

.tws-logo-icon {
    font-size: 18px;
    display: inline-block;
}

.tws-logo-text {
    font-family: inherit;
    white-space: nowrap;
}

/* Lightbox Styles */
.tws-logo-lightbox-content {
    width: 100%;
}

.tws-logo-lightbox-header {
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 20px;
}

.tws-logo-lightbox-header h3 {
    color: #446084;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.tws-logo-lightbox-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.tws-logo-lightbox-body {
    padding: 0;
}

/* Contact Form 7 Custom Styling */
.tws-logo-lightbox .menstore-contact-form.logoform {
    max-width: 100%;
}

.tws-logo-lightbox .menstore-contact-form.logoform label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.tws-logo-lightbox .cform-titles {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tws-logo-lightbox .required-star {
    color: #fa7105 !important;
    margin-left: 2px;
}

.tws-logo-lightbox .wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.tws-logo-lightbox .wpcf7-form-control:focus {
    border-color: #446084;
    box-shadow: 0 0 0 3px rgba(68, 96, 132, 0.1);
    outline: none;
}

.tws-logo-lightbox .wpcf7-form-control.wpcf7-not-valid {
    border-color: #dc3232;
    box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.1);
}

.tws-logo-lightbox .wpcf7-textarea {
    min-height: 80px;
    resize: vertical;
}

.tws-logo-lightbox .wpcf7-select {
    cursor: pointer;
    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 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.tws-logo-lightbox .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.tws-logo-lightbox .wpcf7-list-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.tws-logo-lightbox .wpcf7-list-item:hover {
    background-color: #e9ecef;
    border-color: #446084;
}

.tws-logo-lightbox .wpcf7-list-item input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(1.1);
}

.tws-logo-lightbox .wpcf7-list-item-label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.tws-logo-lightbox .wpcf7-submit {
    background: linear-gradient(135deg, #446084 0%, #5a7ba1 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(68, 96, 132, 0.2);
}

.tws-logo-lightbox .wpcf7-submit:hover {
    background: linear-gradient(135deg, #5a7ba1 0%, #446084 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 96, 132, 0.3);
}

.tws-logo-lightbox .wpcf7-submit:active {
    transform: translateY(0);
}

/* Form validation messages */
.tws-logo-lightbox .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.tws-logo-lightbox .wpcf7-response-output {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.tws-logo-lightbox .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tws-logo-lightbox .wpcf7-mail-sent-ng,
.tws-logo-lightbox .wpcf7-aborted {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tws-logo-lightbox .wpcf7-validation-errors {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Success notification styles */
.tws-logo-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #7a9c59 0%, #8fae6d 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(122, 156, 89, 0.3);
    z-index: 9999;
    font-size: 14px;
    font-weight: 600;
    max-width: 350px;
    word-wrap: break-word;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .tws-logo-button {
        width: 100%;
        max-width: 400px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .tws-logo-lightbox-content {
        padding: 15px;
    }
    
    .tws-logo-lightbox-header h3 {
        font-size: 20px;
    }
    
    .tws-logo-lightbox-header p {
        font-size: 14px;
    }
    
    .tws-logo-lightbox .wpcf7-checkbox {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tws-logo-lightbox .wpcf7-list-item {
        justify-content: flex-start;
    }
    
    .tws-logo-success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .tws-logo-button {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 160px;
    }
    
    .tws-logo-icon {
        font-size: 16px;
    }
    
    .tws-logo-lightbox .wpcf7-form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .tws-logo-lightbox .wpcf7-submit {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .tws-logo-button,
    .tws-logo-lightbox .wpcf7-form-control,
    .tws-logo-lightbox .wpcf7-submit,
    .tws-logo-success-notification {
        transition: none;
    }
    
    .tws-logo-button:hover {
        transform: none;
    }
    
    @keyframes slideInRight {
        from, to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tws-logo-button {
        border: 2px solid #000;
    }
    
    .tws-logo-lightbox .wpcf7-form-control {
        border-width: 2px;
    }
    
    .tws-logo-lightbox .wpcf7-form-control:focus {
        border-width: 3px;
    }
}
