/**
 * SDP Support Tickets - FAQ Styles
 */

/* FAQ Styling */
.support-faq {
    margin: 40px 0;
}

.support-faq h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
}

.toggle-icon {
    color: #4668e0;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 16px;
    }
}

/* Support Form Styles */

/* General form layout */
.sdp-support-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sdp-form-field {
    margin-bottom: 20px;
}

.sdp-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.sdp-form-field input[type="text"],
.sdp-form-field input[type="email"],
.sdp-form-field select,
.sdp-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.sdp-form-field textarea {
    min-height: 150px;
}

.sdp-submit-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
}

.sdp-submit-button:hover {
    background-color: #005c87;
}

/* Ticket View Styles */

/* General ticket view layout */
.sdp-ticket-view {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Ticket status badge */
.ticket-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-left: 10px;
    background-color: #e9e9e9;
}

.ticket-status.new { background-color: #fff7c4; color: #8a6d00; }
.ticket-status.in-progress { background-color: #c4e2ff; color: #005a9e; }
.ticket-status.resolved { background-color: #c4ffd1; color: #006622; }
.ticket-status.closed { background-color: #e9e9e9; color: #555555; }

/* Ticket metadata */
.ticket-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Section styling */
.ticket-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ticket-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Comment styling */
.sdp-ticket-comment {
    background-color: #f0f8ff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.sdp-ticket-comment .comment-author {
    font-weight: bold;
}

.comment-admin .sdp-ticket-comment {
    background-color: #f0fff4;
    border-left-color: #46b450;
}

/* Respond button and form */
.sdp-respond-button {
    display: block;
    padding: 12px 20px;
    background-color: #0073aa;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 20px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sdp-respond-button:hover {
    background-color: #005c87;
    color: white;
}

.sdp-respond-form {
    display: none;
    margin-top: 20px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.sdp-respond-form.active {
    display: block;
}

.comment-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form-submit .submit {
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Remove some WordPress default comment styling */
#comments .comment-reply-title {
    display: none;
}

.comment-notes {
    font-size: 14px;
    color: #666;
}

/* FAQ Section */
.sdp-faqs {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.faq-question:after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-item.active .faq-question:after {
    content: "-";
}

.faq-answer {
    padding: 15px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
} 