/* Link Redirect Popup - Frontend Styles */

/* Popup Overlay */
.lrp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: lrp-fade-in 0.3s ease;
}

@keyframes lrp-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Popup Container */
.lrp-popup-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: lrp-slide-up 0.3s ease;
    position: relative;
}

@keyframes lrp-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Popup Header */
.lrp-popup-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.lrp-popup-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.lrp-popup-close {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.lrp-popup-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.3);
}

/* Popup Body */
.lrp-popup-body {
    padding: 30px 25px;
}

.lrp-form-group {
    margin-bottom: 20px;
}

.lrp-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.lrp-form-group .required {
    color: #e74c3c;
}

.lrp-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.lrp-form-group input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lrp-help-text {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

.lrp-error-message {
    margin-top: 8px;
    padding: 10px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 13px;
}

/* Form Actions */
.lrp-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.lrp-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.lrp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.lrp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.lrp-btn-primary:active {
    transform: translateY(0);
}

.lrp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lrp-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.lrp-btn-secondary:hover {
    background: #e0e0e0;
}

.lrp-btn-loading {
    display: inline-block;
}

/* Link Styles */
.lrp-redirect-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
}

.lrp-redirect-link:hover {
    opacity: 0.8;
}

/* Message Display */
.lrp-message-display {
    padding: 30px 25px;
}

.lrp-message-content {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.lrp-message-content p {
    margin: 0;
    font-size: 15px;
    color: #333;
}

/* Inline Form Styles (matching popup) */
.lrp-inline-form-wrapper {
    margin: 20px 0;
}

.lrp-inline-form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.lrp-inline-form-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.lrp-inline-form-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.lrp-inline-form-body {
    padding: 30px 25px;
}

.lrp-inline-form .lrp-form-group {
    margin-bottom: 20px;
}

.lrp-inline-form .lrp-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.lrp-inline-form .lrp-form-group .required {
    color: #e74c3c;
}

.lrp-inline-form .lrp-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.lrp-inline-form .lrp-form-group input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lrp-inline-form .lrp-help-text {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

.lrp-inline-form .lrp-error-message {
    margin-top: 8px;
    padding: 10px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 13px;
}

.lrp-inline-form .lrp-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.lrp-inline-form .lrp-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.lrp-inline-form .lrp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.lrp-inline-form .lrp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.lrp-inline-form .lrp-btn-primary:active {
    transform: translateY(0);
}

.lrp-inline-form .lrp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lrp-inline-message-display {
    padding: 30px 25px;
}

.lrp-inline-message-display .lrp-message-content {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.lrp-inline-message-display .lrp-message-content p {
    margin: 0;
    font-size: 15px;
    color: #333;
}

/* Responsive */
@media (max-width: 480px) {
    .lrp-popup-container,
    .lrp-inline-form-container {
        width: 95%;
        margin: 20px auto;
    }
    
    .lrp-popup-header,
    .lrp-inline-form-header {
        padding: 15px 20px;
    }
    
    .lrp-popup-header h3,
    .lrp-inline-form-header h3 {
        font-size: 18px;
    }
    
    .lrp-popup-body,
    .lrp-inline-form-body {
        padding: 20px;
    }
    
    .lrp-form-actions {
        flex-direction: column;
    }
    
    .lrp-btn {
        width: 100%;
    }
}

