/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.vjb-access-form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

.vjb-access-form-container h3 {
    color: #014430;
    margin-bottom: 20px;
    text-align: center;
}

.vjb-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.vjb-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.vjb-button {
    background: #014430;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.vjb-button:hover {
    background: #1e3f73;
    color: white;
}

.vjb-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.vjb-description {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

.vjb-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

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

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

/* Job Board Styles */
.vjb-job-board {
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* User Info Header */
.vjb-user-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.vjb-user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vjb-welcome-message {
    font-weight: bold;
    color: #014430;
    font-size: 16px;
}

.vjb-user-email {
    color: #666;
    font-size: 14px;
}

.vjb-user-actions {
    display: flex;
    gap: 10px;
}

.vjb-button-secondary {
    background: #6c757d;
    color: white;
}

.vjb-button-secondary:hover {
    background: #545b62;
    color: white;
}

.vjb-job-board h3 {
    color: #014430;
    margin-bottom: 20px;
    text-align: center;
}

.vjb-jobs-list {
    display: grid;
    gap: 20px;
}

.vjb-job-item {
    background: #fff;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.vjb-job-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.vjb-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.vjb-job-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.4em;
}

.vjb-job-type {
    background: #014430;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.vjb-job-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vjb-job-meta span {
    color: #666;
    font-size: 14px;
}

.vjb-job-meta span:before {
    content: "• ";
    color: #014430;
    font-weight: bold;
}

.vjb-job-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.vjb-job-actions {
    display: flex;
    gap: 10px;
}

.vjb-job-actions .vjb-button {
    padding: 8px 16px;
    font-size: 14px;
}

/* Modal Styles */
.vjb-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.vjb-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.vjb-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.vjb-close:hover {
    color: #000;
}

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

.vjb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.vjb-form-group input,
.vjb-form-group textarea,
.vjb-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.vjb-form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Thank You Page Styles */
.vjb-thank-you-page {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.vjb-thank-you-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    font-size: 48px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.vjb-thank-you-page h2 {
    color: #014430;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.vjb-thank-you-message {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0 30px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.vjb-thank-you-message em {
    color: #014430;
    font-style: italic;
}

.vjb-thank-you-message strong {
    color: #014430;
    font-weight: bold;
}

.vjb-close-thank-you {
    background: #014430;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background 0.3s;
}

.vjb-close-thank-you:hover {
    background: #1e3f73;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vjb-access-form-container,
    .vjb-job-board {
        margin: 10px;
        padding: 20px;
    }
    
    .vjb-job-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .vjb-job-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .vjb-job-actions {
        flex-direction: column;
    }
    
    .vjb-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}