/**
 * Javial Agent Design Service Card Styles
 * Similar to jabez.in.th design service box
 */

/* Design Service Card */
.javial-design-service-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.javial-design-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

/* Header */
.javial-dsc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.javial-dsc-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.javial-dsc-icon img {
    width: 32px;
    height: 32px;
}

.javial-dsc-title {
    display: flex;
    flex-direction: column;
}

.javial-dsc-title strong {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 4px;
}

.javial-dsc-title span {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features List */
.javial-dsc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.javial-dsc-features li {
    padding: 8px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.javial-dsc-features .check {
    color: #FF6B35;
    font-weight: bold;
}

.javial-dsc-features strong {
    color: #FF6B35;
}

.javial-dsc-features small {
    color: #888;
    font-size: 12px;
}

/* Button */
.javial-dsc-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.javial-dsc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    color: white;
    text-decoration: none;
}

.javial-dsc-button:active {
    transform: translateY(0);
}

.javial-dsc-line-btn {
    background: linear-gradient(135deg, #00B900 0%, #00C300 100%);
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.4);
}

.javial-dsc-line-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 185, 0, 0.5);
}

.javial-dsc-button .line-icon {
    width: 24px;
    height: 24px;
}

/* Modal */
.javial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.javial-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: #333;
}

.javial-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.javial-modal-close:hover {
    color: #333;
}

.javial-modal-content h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #333;
}

.javial-modal-subtitle {
    margin: 0 0 24px 0;
    color: #666;
    font-size: 14px;
}

/* Form */
.javial-form-group {
    margin-bottom: 20px;
}

.javial-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.javial-form-group .required {
    color: #FF6B35;
}

.javial-form-group input,
.javial-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.javial-form-group input:focus,
.javial-form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
}

.javial-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.javial-form-info {
    background: #FFF8F5;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.javial-form-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.javial-form-info strong {
    color: #FF6B35;
}

.javial-submit-btn {
    margin-top: 10px;
}

.javial-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Result Messages */
#javial-design-result {
    text-align: center;
    padding: 30px 20px;
}

#javial-design-result.success {
    color: #00B900;
}

#javial-design-result.success h3 {
    color: #00B900;
}

#javial-design-result.error {
    color: #dc3545;
}

#javial-design-result h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

#javial-design-result p {
    color: #666;
}

/* LINE Steps */
.javial-line-step {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.javial-line-step.javial-step-locked {
    opacity: 0.6;
}

.javial-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.step-title {
    font-weight: 600;
    font-size: 14px;
}

.javial-step-desc {
    font-size: 13px;
    color: #ccc;
    margin: 0 0 12px 0;
}

.javial-step-hint {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0 0;
    text-align: center;
}

.javial-dsc-secondary {
    background: linear-gradient(135deg, #4a4a4a 0%, #333333 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.javial-dsc-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.javial-line-step.javial-step-unlocked {
    opacity: 1;
}

.javial-line-step.javial-step-unlocked .step-number {
    background: #00B900;
}

.javial-line-step.javial-step-complete {
    background: rgba(0, 185, 0, 0.1);
}

.javial-line-step.javial-step-complete .step-number {
    background: #00B900;
}

.javial-line-step.javial-step-complete .step-number::after {
    content: '✓';
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .javial-design-service-card {
        padding: 20px;
        margin: 15px 0;
    }

    .javial-dsc-header {
        gap: 12px;
    }

    .javial-dsc-icon {
        width: 48px;
        height: 48px;
    }

    .javial-dsc-title strong {
        font-size: 16px;
    }

    .javial-dsc-features li {
        font-size: 14px;
    }

    .javial-dsc-button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .javial-modal-content {
        padding: 24px;
    }
}
