/* Reset and Base Styles */
.hrcomp-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hrcomp-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    background: #fff;
}

/* Box Styles */
.hrcomp-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.hrcomp-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.hrcomp-box > * {
    position: relative;
    z-index: 2;
}

/* Media Container */
.hrcomp-media-container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hrcomp-media-item {
    flex: 1;
    min-width: 300px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.hrcomp-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.hrcomp-image:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.hrcomp-video {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    background: #000;
}

.hrcomp-media-caption {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: bold;
}

/* Button Styles */
.hrcomp-button-container {
    text-align: center;
    margin-top: 15px;
}

.hrcomp-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 200px;
}

.hrcomp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ff5252, #ff3838);
}

/* Page Styles */
.hrcomp-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

.hrcomp-form-page {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.hrcomp-page-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

/* Form Styles */
.hrcomp-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.hrcomp-form-group {
    margin-bottom: 25px;
}

.hrcomp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.hrcomp-form-group input,
.hrcomp-form-group textarea,
.hrcomp-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.hrcomp-form-group input:focus,
.hrcomp-form-group textarea:focus,
.hrcomp-form-group select:focus {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    outline: none;
}

.hrcomp-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hrcomp-submit-button {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 150px;
}

.hrcomp-back-button {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 150px;
}

.hrcomp-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.hrcomp-back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hrcomp-media-container {
        flex-direction: column;
        align-items: center;
    }
    
    .hrcomp-media-item {
        min-width: 100%;
        margin-bottom: 20px;
    }
    
    .hrcomp-image,
    .hrcomp-video {
        max-width: 100%;
        height: 200px;
    }
    
    .hrcomp-container,
    .hrcomp-page-container {
        padding: 10px;
    }
    
    .hrcomp-form-page {
        padding: 20px;
    }
    
    .hrcomp-form-actions {
        flex-direction: column;
    }
    
    .hrcomp-button,
    .hrcomp-submit-button,
    .hrcomp-back-button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hrcomp-box {
        padding: 20px 15px;
    }
    
    .hrcomp-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .hrcomp-page-title {
        font-size: 24px;
    }
}

/* Fullscreen styles */
:-webkit-full-screen .hrcomp-image {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

:-moz-full-screen .hrcomp-image {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

:-ms-fullscreen .hrcomp-image {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

:fullscreen .hrcomp-image {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

/* Error and Success Messages */
.hrcomp-error {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.hrcomp-success {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.hrcomp-tracking-result {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-right: 4px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}