/**
 * Photos for Contact Form 7 - Styles
 */

/* Main wrapper */
.cf7photos-wrapper {
    display: block;
}

/* Hide default file input */
.cf7photos-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Custom upload button */
.cf7photos-upload-button {
    display: inline-block;
    padding: 12px 30px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: none;
}

.cf7photos-upload-button:hover {
    background: #202020;
    box-shadow: 0 4px 6.5px 0 rgba(255, 255, 255, 0.18) inset, 
                0 6px 8px 0 rgba(76, 76, 74, 0.38);
}

.cf7photos-upload-button:active {
    background: #1b1b1b;
    box-shadow: 0 2px 30px 0 rgba(13, 13, 13, 0.95) inset;
}

/* Preview container - always visible */
.cf7photos-preview {
    display: block;
    margin-top: 20px;
}

/* Main preview (first image - large) */
.cf7photos-preview-main {
    margin-bottom: 15px;
    position: relative;
}

/* Item wrapper (for image + delete button) */
.cf7photos-item {
    position: relative;
    display: inline-block;
}

/* Main image */
.cf7photos-img-main {
    width: 100%;
    max-width: 640px;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Placeholder styles */
.cf7photos-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px dashed #e0e0e0;
    border-radius: 10px;
}

.cf7photos-placeholder-main {
    width: 100%;
    max-width: 640px;
    height: 400px;
}

.cf7photos-placeholder-thumb {
    width: 100px;
    height: 100px;
    border-radius: 5px;
}

.cf7photos-placeholder svg {
    width: 91px;
    height: 91px;
    opacity: 0.5;
}

.cf7photos-placeholder-thumb svg {
    width: 50px;
    height: 50px;
}

/* Delete button */
.cf7photos-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.cf7photos-delete:hover {
    background: rgba(220, 50, 50, 0.9);
    transform: scale(1.1);
}

/* Thumbnails (other images - small) */
.cf7photos-preview-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cf7photos-img-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.cf7photos-img-thumb:hover {
    transform: scale(1.05);
}

/* Validation error */
.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .cf7photos-img-main,
    .cf7photos-placeholder-main {
        max-width: 100%;
        max-height: 300px;
    }

    .cf7photos-img-thumb,
    .cf7photos-placeholder-thumb {
        width: 80px;
        height: 80px;
    }

    .cf7photos-upload-button {
        width: 100%;
        text-align: center;
    }

    .cf7photos-placeholder svg {
        width: 60px;
        height: 60px;
    }

    .cf7photos-placeholder-thumb svg {
        width: 35px;
        height: 35px;
    }
}

